/* V13 — precise polish: compact desktop typography without browser zoom tricks. */
/* Make text at browser 100% read closer to the previous 90% screenshot.
   Only portfolio personal cards are targeted: avoid changing browser scaling or page layout. */
@media (min-width: 651px) {
  body .pcard.v9-personal-card .pc-story p {
    font-size: 0.765rem !important;
    line-height: 1.58 !important;
  }
  body .pcard.v9-personal-card .pc-story .v6-story-extra {
    font-size: 0.725rem !important;
    line-height: 1.57 !important;
  }
  body .pcard.v9-personal-card .pc-head h4 {
    font-size: clamp(1.07rem, 1.35vw, 1.32rem) !important;
  }
  body .pcard.v9-personal-card .pc-story .story-label {
    font-size: 0.59rem !important;
  }
  body .pcard.v9-personal-card .pc-metrics .zone-mini-title {
    font-size: 0.56rem !important;
  }
}
/* Reduce OnStudy's previous vertical footprint slightly, keeping its composition. */
@media (min-width: 651px) {
  body .pcard.v9-personal-card .pc-cover {
    aspect-ratio: 1.075/1 !important;
  }
  body .pcard.v9-personal-card .pc-story {
    padding: 17px 18px 14px !important;
  }
  body .pcard.v9-personal-card .pc-story p {
    margin-top: 9px !important;
  }
  body .pcard.v9-personal-card .pc-story .v6-story-extra {
    margin-top: 8px !important;
  }
}
/* OnConnect only: compact descriptive text, without enlarging the card or its panels. */
body .pcard.v11-onconnect .pc-story .v11-story-extra {
  font-size: 0.715rem !important;
  line-height: 1.55 !important;
  margin-top: 9px !important;
}
body .pcard.v11-onconnect .technologies .v11-core-chip {
  order: 99;
}
/* School repository immediately below title/status, ahead of technologies. */
body #school .scard.v12-school-card .v13-school-repository {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  margin: 0 !important;
  padding: 8px 11px !important;
  border-radius: 10px;
  border: 1px solid rgba(180, 214, 247, 0.19) !important;
  background: rgba(6, 24, 44, 0.45) !important;
  min-height: 0;
}
body #school .scard.v12-school-card .v13-school-repository .v10-meta-heading {
  font-size: 0.58rem !important;
}
body #school .scard.v12-school-card .v13-school-repository .v12-school-counts {
  font-size: 0.64rem !important;
  line-height: 1.38 !important;
}
/* Slightly darker school card surfaces; keep original theme accents. */
body #school .scard.v10-school-card.v12-school-card {
  background: linear-gradient(
    137deg,
    color-mix(in srgb, var(--cdark, #162d48) 68%, #657487),
    color-mix(in srgb, var(--cmain, var(--v10-accent, #4589ce)) 17%, #738292)
  ) !important;
}
body #school .scard.v10-school-card.v12-school-card.v10-light-theme {
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--cmid, #c7d2df) 32%, #788694),
    #7b8999
  ) !important;
}
body #school .scard.v12-school-card .v10-school-meta {
  background: linear-gradient(
    130deg,
    color-mix(in srgb, var(--cbright, #94b9ea) 25%, #162b44),
    color-mix(in srgb, var(--cmain, var(--v10-accent, #4989c9)) 12%, #102139)
  ) !important;
}
@media (max-width: 650px) {
  body #school .scard.v12-school-card .v13-school-repository {
    padding: 10px 12px !important;
  }
  body .pcard.v11-onconnect .pc-story .v11-story-extra {
    font-size: 0.77rem !important;
  }
}
