@charset "UTF-8";

/* Member / staff */

.staff-container {
  margin: 0 0 40px;
}

.staff-main-title,
.category-title {
  font-size: clamp(20px, 3vw, 24px) !important;
  font-weight: 800 !important;
  color: var(--page-navy, #0B1E3F) !important;
  margin: 0 0 16px !important;
  letter-spacing: 0.04em !important;
}

.staff-lead {
  margin: -8px 0 16px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  color: #334155 !important;
}

.staff-box {
  background: #f5f7fa;
  border-radius: 12px;
  padding: 24px 28px;
}

.staff-row {
  display: flex;
  align-items: flex-start;
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.staff-row:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.staff-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--page-navy, #0B1E3F);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  flex-shrink: 0;
  min-width: 110px;
  text-align: center;
}

.staff-text-single {
  font-size: 17px;
  font-weight: 700;
  color: var(--page-text, #1e293b);
  margin-left: 24px;
}

.page-shell p.staff-text-group,
.staff-text-group {
  font-size: 15px;
  font-weight: 500;
  color: var(--page-text, #1e293b);
  margin: 0;
  line-height: 1.7;
}

.page-shell p.staff-notice,
.staff-notice {
  font-size: 13px;
  color: var(--page-muted, #64748b);
  margin: 28px 0 0;
  line-height: 1.6;
}

.member-category {
  margin-bottom: 40px;
}

.member-category:last-child {
  margin-bottom: 0;
}

.member-empty {
  color: var(--page-muted, #64748b);
  font-size: 14px;
  margin: 8px 0 0;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ---- Jersey cards ---- */

.member-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(11, 30, 63, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.member-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 22px rgba(11, 30, 63, 0.1);
  transform: translateY(-1px);
}

.member-card--captain {
  border-color: #fecaca;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}

.member-card--alternate {
  border-color: #bfdbfe;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.jersey {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 950;
  margin: 0;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
  container-type: inline-size;
  container-name: jersey;
}

.jersey__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  pointer-events: none;
}

.jersey__name {
  position: absolute;
  left: 50%;
  top: calc(26% + 4px);
  transform: translateX(-50%);
  z-index: 2;
  width: 42%;
  font-size: calc(6.2cqw + 2pt);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #111827;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jersey__name--long {
  font-size: calc(5cqw + 2pt);
  letter-spacing: 0;
}

.jersey__name--en {
  font-size: calc(4.6cqw + 3pt);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #0B1E3F;
  -webkit-text-stroke: 0.08em #FF6600;
  paint-order: stroke fill;
  overflow: visible;
}

.jersey__name--en.jersey__name--long {
  font-size: calc(3.4cqw + 3pt);
  letter-spacing: 0;
}

.jersey__number {
  position: absolute;
  left: 50%;
  top: 36%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 20cqw;
  font-weight: 900;
  line-height: 1;
  color: #0B1E3F;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  -webkit-text-stroke: 0.08em #FF6600;
  paint-order: stroke fill;
}

.jersey__badge {
  position: absolute;
  right: 8%;
  top: 7%;
  bottom: auto;
  width: 16cqw;
  height: 16cqw;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 7.5cqw;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  border: 0.12em solid #fff;
  box-shadow:
    0 0 0 0.08em rgba(11, 30, 63, 0.35),
    0 0.15em 0.45em rgba(0, 0, 0, 0.35);
  z-index: 3;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.jersey__badge--c {
  background: #e11d48;
}

.jersey__badge--a {
  background: #1d4ed8;
}

.jersey__badge--gk {
  background: #111827;
  width: 18cqw;
  font-size: 5.8cqw;
  letter-spacing: -0.03em;
}

.jersey__badge--offset {
  right: calc(8% + 19cqw);
}

.member-info {
  min-width: 0;
  padding: 10px 12px 12px;
}

.page-shell h3.member-info__name,
.member-info__name {
  margin: 0 0 8px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
  color: var(--page-navy, #0B1E3F) !important;
  text-align: center;
}

.member-info__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid #e8edf4;
  border-radius: 10px;
  overflow: hidden;
}

.member-info__list li {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid #eef2f7;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.member-info__list li:last-child {
  border-bottom: none;
}

.member-info__label {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: var(--page-muted, #64748b) !important;
  letter-spacing: 0.03em;
}

.member-info__value {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--page-text, #1e293b) !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}

.member-info__pos {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: #eef3f9;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: var(--page-navy, #0B1E3F) !important;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .staff-box {
    padding: 16px 18px;
  }

  .staff-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .staff-text-single,
  .staff-text-group {
    margin-left: 0;
  }

  .member-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .member-info {
    padding: 8px 8px 10px;
  }

  .member-info__list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 8px;
    grid-template-columns: none;
    padding: 6px 8px;
  }

  .member-info__label {
    flex: 0 1 auto;
    font-size: 10px !important;
    white-space: nowrap;
  }

  .member-info__value,
  .member-info__pos {
    flex: 0 0 auto;
    min-width: 0;
    overflow: visible;
    white-space: nowrap;
    font-size: 12px !important;
  }

  .member-info__pos {
    min-height: 20px;
    padding: 0 6px;
  }

  .page-shell h3.member-info__name,
  .member-info__name {
    font-size: 16px !important;
  }

  .jersey__name {
    display: none;
  }

  .jersey__number {
    top: calc(38% - 10px);
    font-size: 24cqw;
    -webkit-text-stroke: 0.07em #FF6600;
  }

  .jersey__badge {
    top: 5%;
    right: 6%;
    width: 17cqw;
    height: 17cqw;
    font-size: 8cqw;
  }

  .jersey__badge--gk {
    width: 19cqw;
    font-size: 6cqw;
  }

  .jersey__badge--offset {
    right: calc(6% + 20cqw);
  }
}
