/* V10: one cohesive school-card design and a collaborators catalogue. */
body .portfolio-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 9px !important;
}
body .portfolio-tab {
  min-width: 0 !important;
  font-size: clamp(0.81rem, 1.15vw, 1rem) !important;
  padding: 17px 10px !important;
  gap: 8px !important;
}
body[data-current-collection="collaborators"] #portfolioFilters {
  display: none !important;
}
body .v10-collaborators-section {
  scroll-margin-top: 92px;
}
body .v10-people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 19px 0 65px;
}
body .v10-person-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 23px;
  border-radius: 19px;
  background: linear-gradient(140deg, #142b45, #0e1d32);
  border: 1px solid rgba(132, 184, 228, 0.27);
  box-shadow: 0 15px 35px #0002;
}
body .v10-person-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
body .v10-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 51px;
  width: 51px;
  height: 51px;
  border-radius: 14px;
  color: #e8f7ff;
  font-weight: 900;
  font-size: 1rem;
  background: linear-gradient(135deg, #245f96, #482a78);
  border: 1px solid #b3dfff30;
}
body .v10-person-title {
  min-width: 0;
}
body .v10-person-title h3 {
  font-size: 1.13rem;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
body .v10-person-title p {
  font-size: 0.77rem;
  color: #9bbbd7;
  margin: 4px 0 0;
}
body .v10-person-projects {
  border-top: 1px solid #96c1e62b;
  padding-top: 16px;
  flex: 1;
}
body .v10-person-projectlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}
body .v10-projectlink {
  font-size: 0.74rem;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #5379a37e;
  border-radius: 9px;
  background: #0d223d;
  color: #e8f5ff;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
body .v10-projectlink:hover {
  background: #193957;
  border-color: #8abaf9;
}
body .v10-person-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
body .v10-person-links .btn {
  min-height: 35px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 800;
}
body .v10-link-unavailable {
  font-size: 0.73rem;
  border: 1px dashed #8295b34d;
  border-radius: 9px;
  padding: 8px 10px;
  color: #849fbb;
}
body .v10-meta-heading {
  font-size: 0.61rem;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 850;
  color: #a5cfff;
  margin: 0;
}

/* Unify all twenty-one school cards across their previous construction types.
   Inventory now sits directly under the visual, and all cards gain ~20px of height. */
body #school .school-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 17px !important;
  align-items: stretch !important;
}
body #school .scard.v10-school-card {
  display: grid !important;
  grid-template-columns: minmax(130px, 0.92fr) minmax(155px, 1.03fr) minmax(
      185px,
      1.35fr
    ) !important;
  grid-template-rows: minmax(320px, auto) !important;
  gap: 9px !important;
  padding: 10px !important;
  min-height: 332px !important;
  align-items: stretch !important;
  overflow: visible !important;
  border-radius: 19px !important;
  border: 1px solid color-mix(in srgb, var(--v10-accent, #5d98ca) 69%, #0e2742) !important;
  background: linear-gradient(
    138deg,
    color-mix(in srgb, var(--v10-accent, #457db6) 21%, #132b43),
    #0a1a2e 85%
  ) !important;
  box-shadow: 0 13px 29px rgba(0, 0, 0, 0.17) !important;
}
body #school .scard.v10-school-card > * {
  min-width: 0 !important;
  grid-column: auto !important;
  grid-row: auto !important;
}
body .scard.v10-school-card .v10-cover-column {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 0;
  width: 100%;
}
body .scard.v10-school-card .v10-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  min-height: 170px !important;
  padding: 12px;
  border-radius: 13px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--v10-accent) 89%, white),
    color-mix(in srgb, var(--v10-accent) 70%, #0a2446)
  ) !important;
  text-align: center;
  color: #081d32 !important;
  overflow: hidden;
}
body .scard.v10-school-card .v10-cover strong {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: #0a213d !important;
  font-weight: 950;
}
body .scard.v10-school-card .v10-cover span {
  font-size: 0.73rem;
  line-height: 1.3;
  font-weight: 850;
  overflow-wrap: anywhere;
  color: #0b2138 !important;
}
body .scard.v10-school-card .v10-cover img {
  width: 65%;
  max-height: 135px;
  object-fit: contain;
}
body .scard.v10-school-card .v10-repository {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 57px;
  padding: 9px 10px;
  background: rgba(7, 25, 44, 0.75);
  border: 1px solid rgba(180, 214, 247, 0.2);
  border-radius: 11px;
  color: #e8f5ff;
}
body .scard.v10-school-card .v10-repository strong {
  font-size: 0.78rem;
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -0.018em;
}
body .scard.v10-school-card .v10-repository small {
  font-size: 0.59rem;
  line-height: 1.35;
  color: #9fbfdc;
  overflow-wrap: anywhere;
}
body .scard.v10-school-card .v10-school-middle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
body .scard.v10-school-card .v10-school-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  min-height: 71px;
  border-radius: 12px;
  padding: 11px 12px;
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--v10-accent) 48%, #102640),
    color-mix(in srgb, var(--v10-accent) 72%, #0f2341)
  );
}
body .scard.v10-school-card .v10-school-head h4 {
  font-size: 0.88rem;
  line-height: 1.22;
  font-weight: 850;
  color: #fff !important;
  margin: 0;
  overflow-wrap: anywhere;
}
body .scard.v10-school-card .v10-school-head .status {
  font-size: 0.61rem;
  line-height: 1.15;
  padding: 5px 8px;
}
body .scard.v10-school-card .v10-school-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 13px 11px;
  min-width: 0;
  border: 1px solid rgba(162, 202, 242, 0.23);
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgba(32, 54, 78, 0.9),
    rgba(22, 42, 66, 0.92)
  );
}
body .scard.v10-school-card .v10-school-tech {
  margin: 0;
  color: #d1e4f7;
  font-size: 0.66rem !important;
  line-height: 1.42;
  font-weight: 550;
  overflow-wrap: anywhere;
}
body .scard.v10-school-card .v10-school-contributors {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
  padding-top: 11px;
  border-top: 1px solid #b4d9ff31;
  min-width: 0;
}
body .scard.v10-school-card .v10-contributor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: flex-start;
  min-width: 0;
}
body .scard.v10-school-card .v10-person {
  display: inline-flex;
  align-items: center;
  line-height: 1.27;
  font-size: 0.6rem;
  padding: 6px 7px;
  color: #e5f5ff;
  background: #0b213a;
  border: 1px solid #7aa9d26c;
  border-radius: 7px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: none;
}
body .scard.v10-school-card .v10-person:hover {
  border-color: #afd6ff;
  background: #173652;
}
body .scard.v10-school-card .v10-contrib-muted {
  font-size: 0.66rem;
  color: #9eb5cb;
}
body .scard.v10-school-card .v10-school-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 14px;
  border: 1px solid rgba(163, 200, 229, 0.15);
  border-radius: 12px;
  background: linear-gradient(140deg, #142b43, #0a1d33);
}
body .scard.v10-school-card .v10-school-right > p {
  margin: 0;
  color: #e6f1fc;
  font-size: 0.74rem !important;
  line-height: 1.55 !important;
  overflow-wrap: break-word;
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
}
body .scard.v10-school-card .v10-school-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
body .scard.v10-school-card .v10-school-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px !important;
  padding: 8px 11px !important;
  border-radius: 9px !important;
  font-size: 0.71rem !important;
  font-weight: 820 !important;
  text-decoration: none !important;
  line-height: 1.25 !important;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
body .scard.v10-school-card .v10-btn-primary {
  background: color-mix(in srgb, var(--v10-accent) 76%, #b7ddff) !important;
  color: #0a2036 !important;
  border: 1px solid transparent !important;
}
body .scard.v10-school-card .v10-btn-secondary {
  background: #162e47 !important;
  color: #e7f3ff !important;
  border: 1px solid #6689af68 !important;
}
body .scard.v10-school-card .v10-school-actions .btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.09);
}
body .scard.v10-school-card .v10-school-actions .btn[hidden] {
  display: none !important;
}

@media (max-width: 1240px) {
  body #school .school-grid {
    grid-template-columns: 1fr !important;
  }
  body #school .scard.v10-school-card {
    width: 100%;
    max-width: 960px !important;
    margin-inline: auto !important;
    grid-template-columns: minmax(150px, 0.85fr) minmax(200px, 1fr) minmax(
        250px,
        1.3fr
      ) !important;
  }
  body .v10-people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  body #school .scard.v10-school-card {
    grid-template-columns: minmax(116px, 0.82fr) minmax(160px, 1fr) minmax(
        185px,
        1.22fr
      ) !important;
    min-height: 320px !important;
  }
  body .portfolio-tab {
    flex-wrap: wrap;
    gap: 5px !important;
    justify-content: center;
  }
  body .portfolio-tab small {
    font-size: 0.61rem !important;
  }
}
@media (max-width: 650px) {
  body .portfolio-tabs {
    grid-template-columns: 1fr !important;
  }
  body .portfolio-tab {
    flex-direction: row !important;
    gap: 8px !important;
    padding: 11px 12px !important;
    font-size: 0.84rem !important;
    justify-content: flex-start !important;
  }
  body .portfolio-tab small {
    margin-left: auto;
  }
  body #school .scard.v10-school-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    min-height: 0 !important;
    max-width: none !important;
    padding: 9px !important;
  }
  body #school .scard.v10-school-card > * {
    width: 100% !important;
    min-height: 0 !important;
  }
  body .scard.v10-school-card .v10-cover-column {
    grid-template-rows: auto auto !important;
  }
  body .scard.v10-school-card .v10-cover {
    min-height: 145px !important;
  }
  body .scard.v10-school-card .v10-repository {
    min-height: 49px;
  }
  body .scard.v10-school-card .v10-school-head {
    min-height: 62px;
  }
  body .scard.v10-school-card .v10-school-right {
    min-height: 150px;
  }
  body .scard.v10-school-card .v10-school-tech {
    font-size: 0.74rem !important;
  }
  body .scard.v10-school-card .v10-school-right > p {
    font-size: 0.81rem !important;
  }
  body .v10-people-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  body .scard.v10-school-card .btn {
    transition: none !important;
  }
}
