/* 評審介紹 */
.judges-page {
  --judges-page-accent-gradient: linear-gradient(
    90deg,
    #0997f7 0%,
    #029ef5 7.14%,
    #00a4f2 14.29%,
    #00abf0 21.43%,
    #00b1ed 28.57%,
    #00b8ea 35.71%,
    #00bee8 42.86%,
    #00c4e5 50%,
    #00cae2 57.14%,
    #00d0de 64.29%,
    #00d6db 71.43%,
    #00dcd8 78.57%,
    #00e2d4 85.71%,
    #00e8d0 92.86%,
    #09eecc 100%
  );
  position: relative;
  width: 100%;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 5rem)
    clamp(4rem, 8vw, 6rem);
  overflow-x: clip;
}

.judges-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 14% 20%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 82% 16%, rgba(120, 180, 255, 0.4), transparent),
    radial-gradient(1px 1px at 48% 78%, rgba(255, 255, 255, 0.28), transparent);
}

.judges-page__inner {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
}

.judges-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

.judges-page__breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.judges-page__breadcrumb a:hover {
  color: #fff;
}

.judges-page__breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.75);
}

.judges-page__head {
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  text-align: left;
}

.judges-page__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.judges-page__line {
  display: block;
  width: min(7.5rem, 40%);
  height: 3px;
  margin: 0 0 1rem;
  border: none;
  border-radius: 999px;
  background: var(--judges-page-accent-gradient);
}

.judges-page__intro {
  margin: 0;
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #c0c4cc;
}

.judges-page__empty {
  margin: 0;
  padding: 3rem 1rem;
  border: 1px solid #0997f733;
  border-radius: 0.875rem;
  background: #15324e4d;
  font-size: 1rem;
  line-height: 1.6;
  color: #c0c4cc;
  text-align: center;
}

.judges-page__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.judges-page__item {
  overflow: visible;
}

.judges-page__trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  width: 100%;
  margin: 0;
  padding: clamp(0.875rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.25rem);
  border: 1px solid #0997f733;
  border-radius: 0.75rem;
  background: #15324e4d;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.judges-page__trigger:focus-visible {
  outline: 2px solid rgba(9, 151, 247, 0.55);
  outline-offset: 2px;
}

.judges-page__group-title {
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
}

.judges-page__chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
}

.judges-page__chevron::before {
  content: "";
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.judges-page__item.is-open .judges-page__chevron::before {
  transform: rotate(-135deg);
}

.judges-page__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.45, 0, 0.55, 1);
}

.judges-page__item.is-open .judges-page__panel {
  grid-template-rows: 1fr;
}

.judges-page__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.judges-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4.5vw, 3rem);
  margin: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0.85rem clamp(1.75rem, 3vw, 2.25rem);
  list-style: none;
}

.judges-page__card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  margin: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

.judges-page__photo-wrap {
  --tw: 0.42;
  --th: 0.28;
  --to: 0.016;
  position: relative;
  overflow: visible;
}

.judges-page__photo-wrap::before {
  content: "";
  position: absolute;
  right: calc(var(--to) * -100%);
  bottom: calc(var(--to) * -100%);
  width: calc((var(--tw) + var(--to) * (1 + var(--tw) / var(--th))) * 100%);
  height: calc((var(--th) + var(--to) * (1 + var(--th) / var(--tw))) * 100%);
  background: #53dee6b3;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 1;
}

.judges-page__photo-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(var(--tw) * 100% + 1px);
  height: calc(var(--th) * 100% + 1px);
  background: #727ee4b3;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 2;
}

.judges-page__photo {
  position: relative;
  z-index: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #15324e 0%,
    #142f4b 9.09%,
    #122d48 18.18%,
    #112a45 27.27%,
    #102842 36.36%,
    #0e253f 45.45%,
    #0d223c 54.55%,
    #0c2039 63.64%,
    #0a1d36 72.73%,
    #091b34 81.82%,
    #081831 90.91%,
    #07162e 100%
  );
}

.judges-page__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.judges-page__placeholder {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.judges-page__info {
  margin: 0;
  padding: 0.875rem 0 0;
  min-width: 0;
  font-size: 0.875rem;
  list-style: none;
}

.judges-page__name,
.judges-page__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #fff;
  word-break: break-word;
}

.judges-page__name::before,
.judges-page__meta::before {
  content: "";
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  flex: 0 0 10px;
  background: #70bac7;
}

.judges-page__name {
  font-weight: 700;
}

.judges-page__back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: min(100%, 14rem);
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
  padding: 0.65rem 1.25rem;
  border: 1px solid #0997f74d;
  border-radius: 999px;
  background: #0997f71a;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.judges-page__back:hover {
  color: #ecf2f7;
  border-color: #0997f766;
  background: #0997f733;
}

.judges-page__back:focus-visible {
  outline: 2px solid rgba(9, 151, 247, 0.55);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .judges-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .judges-page__head {
    text-align: center;
  }

  .judges-page__intro {
    margin-inline: auto;
  }

  .judges-page__line {
    margin-inline: auto;
  }

  .judges-page__grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }
}
