/* School detail page final polish - 2026-06-13 */
.school-detail-main {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
  padding: 24px 0 34px;
}

/* v39: final desktop hero override */
@media (min-width: 761px) {
  body.page-school-detail .school-detail-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(18, 105, 243, 0.075);
  }

  body.page-school-detail .school-detail-titleline {
    min-height: 178px !important;
    padding: 34px 440px 28px 46px !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.page-school-detail .school-detail-titleline::before {
    left: 0 !important;
    top: 28px !important;
    width: 5px !important;
    height: calc(100% - 56px) !important;
    border-radius: 0 999px 999px 0;
  }

  body.page-school-detail .school-detail-titleline::after {
    top: 0 !important;
    right: 0 !important;
    width: 430px !important;
    height: 100% !important;
    border-radius: 0;
    background:
      linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.76) 18%, rgba(255,255,255,0.08) 78%),
      url("../assets/generated/school-campus-admission-20260618.png") center right / cover no-repeat;
    opacity: 1;
  }

  body.page-school-detail .school-detail-logo {
    width: 70px !important;
    height: 70px !important;
    border-radius: 14px;
  }

  body.page-school-detail .school-detail-heading h1 {
    font-size: 34px !important;
    line-height: 1.12;
  }

  body.page-school-detail .school-detail-keyfacts {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    border-width: 1px 0 0 !important;
    border-color: #e1ecfb !important;
    border-radius: 0 !important;
    background: rgba(248, 251, 255, 0.9);
  }

  body.page-school-detail .school-detail-keyfacts::before {
    content: none !important;
  }

  body.page-school-detail .school-detail-keyfacts span {
    min-height: 76px !important;
    padding: 14px 28px !important;
    border-right: 1px solid #e1ecfb !important;
    border-bottom: 0 !important;
    background: transparent !important;
  }

  body.page-school-detail .school-detail-keyfacts span:last-child {
    border-right: 0 !important;
  }

  body.page-school-detail .school-detail-keyfacts em {
    display: block;
    margin: 0 0 5px;
    color: #64758d;
    font-size: 12px;
    white-space: nowrap;
  }

  body.page-school-detail .school-detail-keyfacts strong {
    display: block;
    color: #0756d6;
    font-size: 24px !important;
    line-height: 1.15;
    white-space: nowrap;
  }
}

.school-detail-main .breadcrumb {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.school-detail-main .breadcrumb a {
  color: #475569;
}

.school-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 28px 30px;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #fff;
}

.school-detail-titleline {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
}

.school-detail-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  color: #1269f3;
}

.school-detail-logo[data-icon]::after {
  width: 28px;
  height: 28px;
  background: currentColor;
}

.school-detail-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.school-detail-logo-image::after {
  content: none !important;
}

.school-detail-heading {
  min-width: 0;
}

.school-detail-kicker {
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1269f3;
  font-size: 12px;
  font-weight: 800;
}

.school-detail-heading h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.28;
  font-weight: 850;
  letter-spacing: 0;
}

.school-detail-heading p {
  margin: 0 0 13px;
  color: #536274;
  font-size: 15px;
  line-height: 1.65;
}

.school-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.school-detail-tags span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border: 1px solid #d7e3f2;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  line-height: 26px;
  font-weight: 800;
}

.school-detail-keyfacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.school-detail-keyfacts span {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 104px;
  padding: 16px 14px;
  border: 1px solid #e2ebf5;
  border-radius: 8px;
  background: #f8fbff;
}

.school-detail-keyfacts em {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  line-height: 1.4;
}

.school-detail-keyfacts strong {
  min-width: 0;
  color: #1269f3;
  font-size: 24px;
  line-height: 1.22;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.school-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.school-detail-content,
.school-detail-sidebar {
  min-width: 0;
}

.school-detail-section,
.school-detail-side-card {
  min-width: 0;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #fff;
}

.school-detail-section {
  margin-bottom: 18px;
  padding: 24px 26px;
}

.school-detail-section h2,
.school-detail-section-head h2,
.school-detail-side-card h3 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 12px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 850;
}

.school-detail-section h2::before,
.school-detail-section-head h2::before,
.school-detail-side-card h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: #1269f3;
}

.school-detail-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.school-detail-section-head p {
  max-width: 420px;
  margin: 2px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
  text-align: right;
}

.school-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.school-detail-info-grid p,
.school-detail-side-list p {
  display: grid;
  grid-template-columns: minmax(86px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #f8fbff;
}

.school-detail-info-grid span,
.school-detail-side-list span {
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}

.school-detail-info-grid strong,
.school-detail-side-list strong {
  min-width: 0;
  color: #172033;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.school-detail-richtext {
  min-width: 0;
  color: #243145;
  font-size: 15px;
  line-height: 1.78;
}

.school-detail-richtext p {
  margin: 0 0 10px;
}

.school-detail-richtext ul,
.school-detail-richtext ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.school-detail-richtext li {
  min-width: 0;
}

.school-detail-richtext li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #dce8f6;
  border-radius: 8px;
  background: #f8fbff;
  color: #1269f3;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.school-detail-richtext table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  overflow-x: auto;
  border: 1px solid #dce8f6;
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.school-detail-richtext tbody {
  display: table;
  min-width: 900px;
  width: 100%;
  border-collapse: collapse;
}

.school-detail-richtext th,
.school-detail-richtext td {
  padding: 10px 12px;
  border: 1px solid #e5edf7;
  color: #26364a;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.school-detail-richtext td[rowspan] {
  width: 90px;
  color: #475569;
  font-weight: 800;
  text-align: center;
}

.school-detail-richtext a {
  color: #1269f3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.school-brief-lede {
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid #dce8f6;
  border-radius: 8px;
  background: #f8fbff;
  color: #26364a;
  font-size: 15px;
  line-height: 1.85;
}

.school-brief-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.school-brief-grid p {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #fff;
}

.school-brief-grid span,
.school-status-list span,
.school-status-list em,
.school-point-list span {
  overflow-wrap: anywhere;
}

.school-brief-grid span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.school-brief-grid strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 850;
}

.school-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.school-status-list li {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #fbfdff;
}

.school-status-list span {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 850;
}

.school-status-list strong {
  justify-self: end;
  min-width: 0;
  color: #1269f3;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 850;
  text-align: right;
}

.school-status-list em {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  font-style: normal;
}

.school-point-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: point;
}

.school-point-list li {
  position: relative;
  min-width: 0;
  padding: 14px 16px 14px 56px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #fbfdff;
  counter-increment: point;
}

.school-point-list li::before {
  content: counter(point);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #1269f3;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 850;
}

.school-point-list strong {
  display: block;
  margin-bottom: 5px;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 850;
}

.school-point-list span {
  display: block;
  color: #536274;
  font-size: 14px;
  line-height: 1.7;
}

.school-checkpath-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.school-checkpath-grid a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 5px 10px;
  align-items: center;
  min-width: 0;
  min-height: 98px;
  padding: 14px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #fbfdff;
  color: #172033;
  text-decoration: none;
}

.school-checkpath-grid a span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #1269f3;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 850;
}

.school-checkpath-grid strong,
.school-checkpath-grid em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.school-checkpath-grid strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
}

.school-checkpath-grid em {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  font-style: normal;
}

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

.school-material-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #fbfdff;
}

.school-material-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.school-material-head span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef6ff;
  color: #1269f3;
}

.school-material-head span[data-icon]::after,
.school-detail-actions span[data-icon]::after {
  width: 20px;
  height: 20px;
  background: currentColor;
}

.school-material-head h3 {
  min-width: 0;
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.school-material-head a {
  color: #1269f3;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.school-material-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.school-material-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid #edf3fa;
}

.school-material-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.school-material-list a {
  min-width: 0;
  color: #243145;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 750;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.school-material-list a:hover {
  color: #1269f3;
}

.school-material-list time {
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  white-space: nowrap;
}

.school-material-empty {
  min-height: 44px;
  margin: 0;
  padding: 12px;
  border: 1px dashed #d8e4f2;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.school-news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.school-news-tabs span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dce8f6;
  border-radius: 999px;
  background: #f8fbff;
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.school-news-tabs em {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #1269f3;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: 850;
}

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

.school-news-block {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #fbfdff;
}

.school-news-block-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.school-news-block-head h3 {
  min-width: 0;
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.school-news-block-head span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}

.school-news-block ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.school-news-block li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid #edf3fa;
}

.school-news-block li:first-child {
  padding-top: 0;
  border-top: 0;
}

.school-news-block a {
  min-width: 0;
  color: #243145;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 750;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.school-news-block a:hover {
  color: #1269f3;
}

.school-news-block time {
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  white-space: nowrap;
}

.school-material-blank-panel {
  padding: 18px;
  border: 1px solid #d9e6f5;
  border-radius: 8px;
  background: #fbfdff;
}

.school-material-blank-panel strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 850;
}

.school-material-blank-panel p {
  max-width: 680px;
  margin: 0 0 14px;
  color: #536274;
  font-size: 14px;
  line-height: 1.75;
}

.school-material-blank-panel div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.school-material-blank-panel a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dce8f6;
  border-radius: 8px;
  background: #fff;
  color: #1269f3;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.school-material-blank-panel a span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: currentColor;
}

.school-material-blank-panel a span[data-icon]::after {
  width: 18px;
  height: 18px;
  background: currentColor;
}

.school-detail-source p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.75;
}

.school-detail-source a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #1269f3;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
  text-decoration: none;
}

.school-detail-sidebar {
  display: grid;
  gap: 18px;
}

.school-detail-side-card {
  padding: 20px;
}

.school-detail-side-list {
  display: grid;
  gap: 10px;
}

.school-detail-actions {
  display: grid;
  gap: 10px;
}

.school-detail-actions a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
}

.school-detail-actions a span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f8fbff;
  color: #1269f3;
}

.school-detail-actions strong,
.school-detail-actions em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.school-detail-actions strong {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
}

.school-detail-actions em {
  grid-column: 2;
  margin-top: -8px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.school-detail-notes ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.school-detail-notes li {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #f8fbff;
}

.school-detail-notes strong {
  display: block;
  margin-bottom: 5px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 850;
}

.school-detail-notes span {
  display: block;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .school-detail-hero,
  .school-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .school-detail-main {
    width: min(100% - 24px, 1200px);
    padding-top: 16px;
  }

  .school-detail-hero,
  .school-detail-section,
  .school-detail-side-card {
    padding: 20px;
  }

  .school-detail-titleline,
  .school-detail-section-head {
    display: block;
  }

  .school-detail-logo {
    margin-bottom: 12px;
  }

  .school-detail-heading h1 {
    font-size: 24px;
  }

  .school-detail-section-head p {
    max-width: none;
    margin-top: -8px;
    text-align: left;
  }

  .school-detail-keyfacts,
  .school-detail-info-grid,
  .school-brief-grid,
  .school-status-list,
  .school-checkpath-grid,
  .school-material-grid,
  .school-news-grid,
  .school-detail-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .school-status-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .school-status-list strong {
    justify-self: start;
    text-align: left;
  }

  .school-material-blank-panel div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-material-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .school-news-block li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .school-material-blank-panel div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* School detail full redesign - v17 */
.school-detail-main {
  width: min(100% - 32px, 1220px);
}

.school-detail-hero {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  margin-bottom: 18px;
  padding: 34px 36px;
  border-color: #d7e3f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.school-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(18, 105, 243, 0.08), rgba(255, 255, 255, 0) 42%);
}

.school-detail-titleline,
.school-detail-keyfacts {
  position: relative;
  z-index: 1;
}

.school-detail-heading h1 {
  font-size: 34px;
}

.school-detail-heading p {
  color: #334155;
}

.school-detail-keyfacts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.school-detail-keyfacts span {
  min-height: 118px;
  background: #fff;
}

.school-detail-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}

.school-redesign-content {
  display: grid;
  gap: 16px;
}

.school-profile-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.school-profile-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.school-profile-tabs a:first-child,
.school-profile-tabs a:hover {
  background: #1269f3;
  color: #fff;
}

.school-panel,
.school-side-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #fff;
}

.school-panel h2,
.school-panel-head h2,
.school-side-panel h3 {
  position: relative;
  margin: 0 0 14px;
  padding-left: 12px;
  color: #0f172a;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 850;
}

.school-panel h2::before,
.school-panel-head h2::before,
.school-side-panel h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: #1269f3;
}

.school-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e7eef7;
}

.school-panel-head p {
  max-width: 430px;
  margin: 2px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
  text-align: right;
}

.school-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
}

.school-home-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.school-home-table p,
.school-intro-notes p,
.school-detail-side-list p,
.school-side-status p {
  display: grid;
  grid-template-columns: minmax(86px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #f8fbff;
}

.school-home-table span,
.school-intro-notes span,
.school-detail-side-list span,
.school-side-status span {
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}

.school-home-table strong,
.school-intro-notes strong,
.school-detail-side-list strong,
.school-side-status strong {
  min-width: 0;
  color: #172033;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.school-home-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.school-home-metrics p {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 92px;
  margin: 0;
  padding: 14px;
  border: 1px solid #d9e7f8;
  border-radius: 8px;
  background: #fff;
}

.school-home-metrics strong {
  min-width: 0;
  color: #1269f3;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.school-home-metrics span {
  margin-top: 7px;
  color: #64748b;
  font-size: 13px;
}

.school-home-metrics em {
  margin-left: 3px;
  font-style: normal;
}

.school-intro-text {
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid #dce8f6;
  border-radius: 8px;
  background: #f8fbff;
  color: #243145;
  font-size: 15px;
  line-height: 1.85;
}

.school-intro-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.school-major-summary {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #d9e7f8;
  border-radius: 8px;
  background: #f8fbff;
}

.school-major-summary strong {
  color: #1269f3;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 850;
}

.school-major-summary span {
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.school-major-table-wrap {
  overflow-x: auto;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
}

.school-major-table {
  min-width: 720px;
  width: 100%;
  border-collapse: collapse;
}

.school-major-table th,
.school-major-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e7eef7;
  color: #26364a;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.school-major-table th {
  background: #f8fbff;
  color: #475569;
  font-weight: 850;
}

.school-subject-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.school-subject-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #fbfdff;
}

.school-subject-grid span,
.school-subject-grid em {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  font-style: normal;
}

.school-subject-grid strong {
  display: block;
  min-height: 44px;
  margin: 8px 0 7px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.school-news-section .school-news-grid {
  grid-template-columns: minmax(0, 1fr);
}

.school-news-block {
  background: #fff;
}

.school-redesign-sidebar {
  display: grid;
  gap: 16px;
}

.school-side-panel {
  padding: 18px;
}

.school-side-status div,
.school-detail-side-list {
  display: grid;
  gap: 9px;
}

.school-side-status p {
  min-height: 42px;
  padding: 9px 11px;
}

.school-detail-source p {
  margin: 0;
}

@media (max-width: 1100px) {
  .school-detail-hero,
  .school-detail-layout,
  .school-home-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .school-detail-main {
    width: min(100% - 24px, 1220px);
  }

  .school-detail-hero,
  .school-panel,
  .school-side-panel {
    padding: 20px;
  }

  .school-profile-tabs {
    position: static;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .school-profile-tabs a {
    flex: 0 0 auto;
  }

  .school-panel-head,
  .school-major-summary {
    display: block;
  }

  .school-panel-head p {
    max-width: none;
    margin-top: -6px;
    text-align: left;
  }

  .school-home-table,
  .school-home-metrics,
  .school-intro-notes,
  .school-subject-grid,
  .school-redesign-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .school-news-block li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* School detail visual redesign - v19 */
.page-school-detail {
  background:
    linear-gradient(180deg, #eef5ff 0, #f6f8fb 260px, #f6f8fb 100%);
}

.page-school-detail .inner-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.school-detail-main {
  width: min(100% - 40px, 1248px);
  padding-top: 22px;
}

.school-detail-main .breadcrumb {
  margin-bottom: 14px;
  color: #64748b;
  font-size: 13px;
}

.school-detail-hero {
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 376px;
  gap: 28px;
  min-height: 250px;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #0f2f5f;
  box-shadow: 0 18px 40px rgba(15, 47, 95, 0.14);
}

.school-detail-hero::before {
  display: none;
}

.school-detail-titleline {
  align-items: center;
  padding: 36px 40px;
  background:
    linear-gradient(135deg, rgba(15, 47, 95, 0.98), rgba(19, 78, 143, 0.94)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.school-detail-logo {
  width: 68px;
  height: 68px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.school-detail-logo[data-icon]::after {
  width: 34px;
  height: 34px;
}

.school-detail-kicker {
  height: 28px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
}

.school-detail-heading h1 {
  color: #fff;
  font-size: 38px;
  line-height: 1.2;
}

.school-detail-heading p {
  color: #d7e6f8;
}

.school-detail-tags span {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.school-detail-keyfacts {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 24px;
  background: #fff;
}

.school-detail-keyfacts span {
  min-height: 0;
  padding: 17px 18px;
  border: 0;
  border-bottom: 1px solid #e8eef6;
  border-radius: 0;
  background: #fff;
}

.school-detail-keyfacts span:last-child {
  border-bottom: 0;
}

.school-detail-keyfacts em {
  margin: 0 0 6px;
  color: #64748b;
}

.school-detail-keyfacts strong {
  color: #0f2f5f;
  font-size: 30px;
}

.school-detail-layout {
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 20px;
}

.school-redesign-content {
  gap: 18px;
}

.school-profile-tabs {
  top: 10px;
  gap: 0;
  padding: 0 14px;
  border-color: #d8e3f0;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.school-profile-tabs a {
  position: relative;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 0;
  color: #475569;
  transition: color 0.18s ease, background 0.18s ease;
}

.school-profile-tabs a:first-child,
.school-profile-tabs a:hover {
  background: transparent;
  color: #075985;
}

.school-profile-tabs a:first-child::after,
.school-profile-tabs a:hover::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #0369a1;
}

.school-panel,
.school-side-panel {
  border-color: #d8e3f0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.school-panel {
  padding: 28px;
}

.school-panel-head {
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.school-panel h2,
.school-panel-head h2,
.school-side-panel h3 {
  padding-left: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.school-panel h2::before,
.school-panel-head h2::before,
.school-side-panel h3::before {
  display: none;
}

.school-panel-head h2::after,
.school-side-panel h3::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0369a1, #38bdf8);
}

.school-panel-head p {
  color: #64748b;
  text-align: right;
}

.school-home-layout {
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 18px;
}

.school-home-table {
  gap: 0;
  overflow: hidden;
  border: 1px solid #e1eaf5;
  border-radius: 10px;
}

.school-home-table p {
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid #e8eef6;
  border-bottom: 1px solid #e8eef6;
  border-radius: 0;
  background: #fff;
}

.school-home-table p:nth-child(2n) {
  border-right: 0;
}

.school-home-table p:nth-last-child(-n+2) {
  border-bottom: 0;
}

.school-home-table span,
.school-intro-notes span,
.school-detail-side-list span,
.school-side-status span {
  color: #64748b;
}

.school-home-table strong,
.school-intro-notes strong,
.school-detail-side-list strong,
.school-side-status strong {
  color: #0f172a;
}

.school-home-metrics {
  gap: 12px;
}

.school-home-metrics p {
  min-height: 106px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.school-home-metrics p:first-child {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #075985, #0369a1);
}

.school-home-metrics p:first-child strong,
.school-home-metrics p:first-child span {
  color: #fff;
}

.school-home-metrics strong {
  color: #075985;
  font-size: 28px;
}

.school-intro-text {
  margin-bottom: 16px;
  padding: 20px 22px;
  border-color: #dbeafe;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  color: #1e293b;
  font-size: 16px;
  line-height: 1.86;
}

.school-intro-notes p {
  min-height: 64px;
  padding: 14px 16px;
  background: #fff;
}

.school-major-summary {
  grid-template-columns: 240px minmax(0, 1fr);
  padding: 18px 20px;
  border-color: #cfe3f8;
  background: linear-gradient(90deg, #f0f8ff, #ffffff);
}

.school-major-summary strong {
  color: #075985;
  font-size: 22px;
}

.school-major-table-wrap {
  border-color: #d8e3f0;
}

.school-major-table th {
  background: #f1f6fb;
  color: #334155;
}

.school-major-table td {
  background: #fff;
}

.school-subject-grid {
  gap: 14px;
}

.school-subject-grid article {
  position: relative;
  padding: 18px;
  border-color: #dbeafe;
  background: #fff;
}

.school-subject-grid article::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: #38bdf8;
}

.school-subject-grid strong {
  min-height: 48px;
  color: #0f2f5f;
}

.school-news-tabs {
  padding: 12px;
  border: 1px solid #e1eaf5;
  border-radius: 10px;
  background: #f8fbff;
}

.school-news-tabs span {
  border-color: #d5e4f4;
  background: #fff;
}

.school-news-block {
  padding: 0;
  overflow: hidden;
  border-color: #d8e3f0;
}

.school-news-block-head {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #e8eef6;
  background: #f8fbff;
}

.school-news-block ul {
  gap: 0;
}

.school-news-block li {
  min-height: 54px;
  padding: 13px 18px;
  border-top: 0;
  border-bottom: 1px solid #eef3f8;
}

.school-news-block li:last-child {
  border-bottom: 0;
}

.school-news-block a {
  color: #172033;
  font-weight: 700;
}

.school-news-block a:hover {
  color: #0369a1;
}

.school-redesign-sidebar {
  align-self: start;
  position: sticky;
  top: 12px;
}

.school-side-panel {
  padding: 20px;
}

.school-side-status div,
.school-detail-side-list {
  gap: 8px;
}

.school-detail-side-list p,
.school-side-status p {
  min-height: 46px;
  border-color: #e1eaf5;
  background: #fff;
}

.school-detail-source {
  background: #fbfdff;
}

@media (prefers-reduced-motion: no-preference) {
  .school-profile-tabs a,
  .school-news-block a,
  .school-home-metrics p {
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  }

  .school-home-metrics p:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  }
}

@media (max-width: 1100px) {
  .school-detail-hero,
  .school-detail-layout,
  .school-home-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .school-detail-keyfacts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .school-detail-keyfacts span {
    border-bottom: 0;
    border-right: 1px solid #e8eef6;
  }

  .school-detail-keyfacts span:last-child {
    border-right: 0;
  }

  .school-redesign-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .school-detail-main {
    width: min(100% - 24px, 1248px);
  }

  .school-detail-titleline {
    display: block;
    padding: 28px 24px;
  }

  .school-detail-heading h1 {
    font-size: 28px;
  }

  .school-detail-keyfacts {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }

  .school-detail-keyfacts span {
    border-right: 0;
    border-bottom: 1px solid #e8eef6;
  }

  .school-panel,
  .school-side-panel {
    padding: 20px;
  }

  .school-panel-head {
    display: block;
  }

  .school-panel-head p {
    text-align: left;
  }

  .school-home-table,
  .school-home-metrics,
  .school-intro-notes,
  .school-subject-grid,
  .school-redesign-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .school-home-table p,
  .school-home-table p:nth-child(2n),
  .school-home-table p:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid #e8eef6;
  }

  .school-home-table p:last-child {
    border-bottom: 0;
  }

  .school-major-summary {
    display: block;
  }

  .school-major-summary strong {
    display: block;
    margin-bottom: 8px;
  }
}

/* School detail hero hardening - v20 */
body.page-school-detail .school-detail-main {
  width: min(100% - 40px, 1248px);
}

body.page-school-detail .school-detail-hero {
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 376px;
  gap: 0;
  min-height: 250px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #0f2f5f;
  box-shadow: 0 18px 40px rgba(15, 47, 95, 0.14);
}

body.page-school-detail .school-detail-hero::before {
  display: none;
}

body.page-school-detail .school-detail-titleline {
  align-items: center;
  padding: 38px 42px;
  background: linear-gradient(135deg, #0f2f5f 0%, #134e8f 100%);
}

body.page-school-detail .school-detail-logo {
  width: 68px;
  height: 68px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.page-school-detail .school-detail-kicker {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
}

body.page-school-detail .school-detail-heading h1 {
  color: #fff;
  font-size: 38px;
}

body.page-school-detail .school-detail-heading p {
  color: #d7e6f8;
}

body.page-school-detail .school-detail-tags span {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

body.page-school-detail .school-detail-keyfacts {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 24px;
  background: #fff;
}

body.page-school-detail .school-detail-keyfacts span {
  min-height: 0;
  padding: 17px 18px;
  border: 0;
  border-bottom: 1px solid #e8eef6;
  border-radius: 0;
  background: #fff;
}

body.page-school-detail .school-detail-keyfacts span:last-child {
  border-bottom: 0;
}

body.page-school-detail .school-detail-keyfacts strong {
  color: #0f2f5f;
  font-size: 30px;
}

@media (max-width: 1100px) {
  body.page-school-detail .school-detail-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-school-detail .school-detail-keyfacts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-school-detail .school-detail-keyfacts span {
    border-bottom: 0;
    border-right: 1px solid #e8eef6;
  }

  body.page-school-detail .school-detail-keyfacts span:last-child {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  body.page-school-detail .school-detail-main {
    width: min(100% - 24px, 1248px);
  }

  body.page-school-detail .school-detail-titleline {
    display: block;
    padding: 28px 24px;
  }

  body.page-school-detail .school-detail-heading h1 {
    font-size: 28px;
  }

  body.page-school-detail .school-detail-keyfacts {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }

  body.page-school-detail .school-detail-keyfacts span {
    border-right: 0;
    border-bottom: 1px solid #e8eef6;
  }
}

/* School detail youthful campus direction - v20 */
body.page-school-detail {
  background:
    linear-gradient(180deg, #eaf7ff 0, #f7fbff 245px, #f6f8fb 100%);
}

body.page-school-detail .school-detail-main {
  width: min(100% - 40px, 1228px);
}

body.page-school-detail .school-detail-hero {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
  min-height: 238px;
  padding: 0;
  border: 1px solid #d6ecff;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(30, 115, 190, 0.12);
}

body.page-school-detail .school-detail-titleline {
  position: relative;
  align-items: center;
  padding: 36px 40px;
  background:
    linear-gradient(135deg, rgba(232, 247, 255, 0.98), rgba(255, 255, 255, 0.95) 58%, rgba(239, 253, 246, 0.95));
}

body.page-school-detail .school-detail-titleline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 100%;
  background: linear-gradient(180deg, #38bdf8, #34d399, #fbbf24);
}

body.page-school-detail .school-detail-logo {
  width: 68px;
  height: 68px;
  border: 1px solid #bae6fd;
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.15);
}

body.page-school-detail .school-detail-logo[data-icon]::after {
  width: 34px;
  height: 34px;
}

body.page-school-detail .school-detail-kicker {
  height: 28px;
  border-color: #bae6fd;
  background: #effaff;
  color: #0369a1;
}

body.page-school-detail .school-detail-heading h1 {
  color: #102033;
  font-size: 38px;
  line-height: 1.2;
}

body.page-school-detail .school-detail-heading p {
  color: #52657a;
}

body.page-school-detail .school-detail-tags span {
  border-color: #cdeafe;
  background: #ffffff;
  color: #24536d;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
}

body.page-school-detail .school-detail-tags span:nth-child(2) {
  border-color: #bbf7d0;
  color: #047857;
}

body.page-school-detail .school-detail-tags span:nth-child(3) {
  border-color: #fde68a;
  color: #a16207;
}

body.page-school-detail .school-detail-keyfacts {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fcff);
}

body.page-school-detail .school-detail-keyfacts span {
  min-height: 0;
  padding: 15px 16px;
  border: 1px solid #e1effb;
  border-radius: 12px;
  background: #ffffff;
}

body.page-school-detail .school-detail-keyfacts span:last-child {
  border: 1px solid #e1effb;
}

body.page-school-detail .school-detail-keyfacts strong {
  color: #0284c7;
  font-size: 29px;
}

body.page-school-detail .school-detail-layout {
  grid-template-columns: minmax(0, 1fr) 308px;
  gap: 18px;
}

body.page-school-detail .school-profile-tabs {
  top: 10px;
  gap: 8px;
  padding: 10px;
  border-color: #d6ecff;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(30, 115, 190, 0.08);
}

body.page-school-detail .school-profile-tabs a {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #52657a;
}

body.page-school-detail .school-profile-tabs a:first-child,
body.page-school-detail .school-profile-tabs a:hover {
  background: #e0f2fe;
  color: #0369a1;
}

body.page-school-detail .school-profile-tabs a:first-child::after,
body.page-school-detail .school-profile-tabs a:hover::after {
  display: none;
}

body.page-school-detail .school-panel,
body.page-school-detail .school-side-panel {
  border-color: #dbeafe;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(30, 115, 190, 0.075);
}

body.page-school-detail .school-panel {
  padding: 26px;
}

body.page-school-detail .school-panel-head {
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom-color: #e8f3fc;
}

body.page-school-detail .school-panel h2,
body.page-school-detail .school-panel-head h2,
body.page-school-detail .school-side-panel h3 {
  color: #102033;
  font-size: 21px;
}

body.page-school-detail .school-panel-head h2::after,
body.page-school-detail .school-side-panel h3::after {
  width: 42px;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #34d399);
}

body.page-school-detail .school-home-layout {
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 16px;
}

body.page-school-detail .school-home-table {
  gap: 10px;
  overflow: visible;
  border: 0;
  border-radius: 0;
}

body.page-school-detail .school-home-table p {
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid #e0f2fe;
  border-radius: 12px;
  background: #fbfdff;
}

body.page-school-detail .school-home-table p:nth-child(2n),
body.page-school-detail .school-home-table p:nth-last-child(-n+2) {
  border: 1px solid #e0f2fe;
}

body.page-school-detail .school-home-table p:nth-child(3n) {
  background: #f2fff8;
  border-color: #d6f5e2;
}

body.page-school-detail .school-home-metrics {
  gap: 10px;
}

body.page-school-detail .school-home-metrics p {
  min-height: 96px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #ffffff;
}

body.page-school-detail .school-home-metrics p:first-child {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
}

body.page-school-detail .school-home-metrics strong {
  color: #0284c7;
}

body.page-school-detail .school-intro-text {
  padding: 20px 22px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0f9ff, #ffffff 58%, #f7fee7);
  color: #243145;
}

body.page-school-detail .school-intro-notes p,
body.page-school-detail .school-detail-side-list p,
body.page-school-detail .school-side-status p {
  border-color: #e0f2fe;
  border-radius: 12px;
  background: #fbfdff;
}

body.page-school-detail .school-major-summary {
  grid-template-columns: 230px minmax(0, 1fr);
  border-color: #bbf7d0;
  border-radius: 14px;
  background: linear-gradient(90deg, #f0fdf4, #ffffff);
}

body.page-school-detail .school-major-summary strong {
  color: #047857;
}

body.page-school-detail .school-major-table-wrap {
  border-color: #dbeafe;
  border-radius: 14px;
}

body.page-school-detail .school-major-table th {
  background: #f0f9ff;
}

body.page-school-detail .school-subject-grid {
  gap: 12px;
}

body.page-school-detail .school-subject-grid article {
  border-color: #dbeafe;
  border-radius: 14px;
  background: #ffffff;
}

body.page-school-detail .school-subject-grid article::before {
  left: 18px;
  right: auto;
  top: 16px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: #38bdf8;
}

body.page-school-detail .school-subject-grid article:nth-child(2)::before {
  background: #34d399;
}

body.page-school-detail .school-subject-grid article:nth-child(3)::before {
  background: #fbbf24;
}

body.page-school-detail .school-subject-grid strong {
  color: #102033;
  margin-top: 16px;
}

body.page-school-detail .school-news-tabs {
  border-color: #dbeafe;
  border-radius: 14px;
  background: #f0f9ff;
}

body.page-school-detail .school-news-tabs span {
  border-color: #bae6fd;
  border-radius: 999px;
}

body.page-school-detail .school-news-tabs em {
  background: #0ea5e9;
}

body.page-school-detail .school-news-block {
  border-color: #dbeafe;
  border-radius: 14px;
}

body.page-school-detail .school-news-block-head {
  background: #fbfdff;
}

body.page-school-detail .school-news-block a:hover {
  color: #0284c7;
}

body.page-school-detail .school-redesign-sidebar {
  position: sticky;
  top: 12px;
}

body.page-school-detail .school-side-panel {
  padding: 18px;
}

body.page-school-detail .school-side-panel h3::after {
  background: linear-gradient(90deg, #38bdf8, #fbbf24);
}

@media (max-width: 1100px) {
  body.page-school-detail .school-detail-hero,
  body.page-school-detail .school-detail-layout,
  body.page-school-detail .school-home-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-school-detail .school-detail-keyfacts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-school-detail .school-redesign-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  body.page-school-detail .school-detail-main {
    width: min(100% - 24px, 1228px);
  }

  body.page-school-detail .school-detail-titleline {
    display: block;
    padding: 28px 24px;
  }

  body.page-school-detail .school-detail-heading h1 {
    font-size: 28px;
  }

  body.page-school-detail .school-detail-keyfacts,
  body.page-school-detail .school-home-table,
  body.page-school-detail .school-home-metrics,
  body.page-school-detail .school-intro-notes,
  body.page-school-detail .school-subject-grid,
  body.page-school-detail .school-redesign-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-school-detail .school-panel-head,
  body.page-school-detail .school-major-summary {
    display: block;
  }
}

/* School detail clean youth direction - v21: no large color blocks */
body.page-school-detail {
  background: #f6f8fb;
}

body.page-school-detail .school-detail-main {
  width: min(100% - 40px, 1228px);
}

body.page-school-detail .school-detail-hero {
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 220px;
  border: 1px solid #dce8f6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

body.page-school-detail .school-detail-titleline {
  padding: 34px 38px;
  background: #fff;
}

body.page-school-detail .school-detail-titleline::before {
  width: 5px;
  background: #38bdf8;
}

body.page-school-detail .school-detail-logo {
  border-color: #dbeafe;
  background: #f8fbff;
  color: #0284c7;
  box-shadow: none;
}

body.page-school-detail .school-detail-kicker {
  border-color: #dbeafe;
  background: #f8fbff;
  color: #0369a1;
}

body.page-school-detail .school-detail-heading h1 {
  color: #0f172a;
}

body.page-school-detail .school-detail-heading p {
  color: #536274;
}

body.page-school-detail .school-detail-tags span {
  border-color: #d7e3f2;
  background: #fff;
  color: #334155;
  box-shadow: none;
}

body.page-school-detail .school-detail-tags span:nth-child(2) {
  border-color: #cdebdc;
  color: #047857;
}

body.page-school-detail .school-detail-tags span:nth-child(3) {
  border-color: #f4dfaa;
  color: #8a5b08;
}

body.page-school-detail .school-detail-keyfacts {
  gap: 0;
  padding: 22px;
  border-left: 1px solid #e7eef7;
  background: #fff;
}

body.page-school-detail .school-detail-keyfacts span {
  border: 0;
  border-bottom: 1px solid #e7eef7;
  border-radius: 0;
  background: #fff;
}

body.page-school-detail .school-detail-keyfacts span:last-child {
  border: 0;
}

body.page-school-detail .school-detail-keyfacts strong {
  color: #0369a1;
}

body.page-school-detail .school-profile-tabs {
  border-color: #dce8f6;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

body.page-school-detail .school-profile-tabs a:first-child,
body.page-school-detail .school-profile-tabs a:hover {
  background: #f0f9ff;
  color: #0369a1;
}

body.page-school-detail .school-panel,
body.page-school-detail .school-side-panel {
  border-color: #dce8f6;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

body.page-school-detail .school-panel-head h2::after,
body.page-school-detail .school-side-panel h3::after {
  background: #38bdf8;
}

body.page-school-detail .school-home-table p,
body.page-school-detail .school-home-table p:nth-child(2n),
body.page-school-detail .school-home-table p:nth-last-child(-n+2),
body.page-school-detail .school-home-table p:nth-child(3n),
body.page-school-detail .school-intro-notes p,
body.page-school-detail .school-detail-side-list p,
body.page-school-detail .school-side-status p,
body.page-school-detail .school-subject-grid article,
body.page-school-detail .school-home-metrics p {
  border-color: #e1ebf6;
  background: #fff;
}

body.page-school-detail .school-home-metrics p:first-child {
  border-color: #bfdbfe;
  background: #fff;
}

body.page-school-detail .school-home-metrics p:first-child strong {
  color: #0369a1;
}

body.page-school-detail .school-home-metrics p:first-child span {
  color: #64748b;
}

body.page-school-detail .school-intro-text {
  border-color: #e1ebf6;
  background: #fff;
}

body.page-school-detail .school-major-summary {
  border-color: #dce8f6;
  background: #fff;
}

body.page-school-detail .school-major-summary strong {
  color: #0369a1;
}

body.page-school-detail .school-major-table th {
  background: #f8fbff;
}

body.page-school-detail .school-news-tabs {
  border-color: #e1ebf6;
  background: #fff;
}

body.page-school-detail .school-news-tabs span {
  border-color: #dce8f6;
  background: #f8fbff;
}

body.page-school-detail .school-news-tabs em {
  background: #38bdf8;
}

body.page-school-detail .school-news-block,
body.page-school-detail .school-news-block-head {
  border-color: #e1ebf6;
  background: #fff;
}

body.page-school-detail .school-news-block-head {
  border-bottom: 1px solid #e7eef7;
}

body.page-school-detail .school-side-panel h3::after {
  background: #38bdf8;
}

@media (max-width: 1100px) {
  body.page-school-detail .school-detail-hero,
  body.page-school-detail .school-detail-layout,
  body.page-school-detail .school-home-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-school-detail .school-detail-keyfacts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid #e7eef7;
  }

  body.page-school-detail .school-detail-keyfacts span {
    border-bottom: 0;
    border-right: 1px solid #e7eef7;
  }

  body.page-school-detail .school-detail-keyfacts span:last-child {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  body.page-school-detail .school-detail-main {
    width: min(100% - 24px, 1228px);
  }

  body.page-school-detail .school-detail-titleline {
    display: block;
    padding: 28px 24px;
  }

  body.page-school-detail .school-detail-heading h1 {
    font-size: 28px;
  }

  body.page-school-detail .school-detail-keyfacts,
  body.page-school-detail .school-home-table,
  body.page-school-detail .school-home-metrics,
  body.page-school-detail .school-intro-notes,
  body.page-school-detail .school-subject-grid,
  body.page-school-detail .school-redesign-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-school-detail .school-detail-keyfacts span {
    border-right: 0;
    border-bottom: 1px solid #e7eef7;
  }
}

/* v22: light campus image detail and colorful content icons */
body.page-school-detail .school-detail-titleline {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 246px;
  padding-right: min(42vw, 510px);
}

body.page-school-detail .school-detail-titleline::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 0;
  width: min(44%, 470px);
  height: calc(100% - 36px);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.62) 30%, rgba(255,255,255,0.12) 100%),
    url("../assets/generated/school-campus-admission-20260618.png") center right / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(219, 234, 254, 0.72);
  opacity: 0.98;
}

body.page-school-detail .school-detail-titleline::before {
  z-index: 1;
}

body.page-school-detail .school-detail-heading,
body.page-school-detail .school-detail-tags,
body.page-school-detail .school-detail-kicker,
body.page-school-detail .school-detail-logo {
  position: relative;
  z-index: 2;
}

body.page-school-detail .school-profile-tabs a {
  gap: 8px;
}

body.page-school-detail .school-profile-tabs a span[data-icon],
body.page-school-detail .school-panel-icon,
body.page-school-detail .school-news-icon,
body.page-school-detail .school-subject-grid i[data-icon],
body.page-school-detail .school-home-table i[data-icon],
body.page-school-detail .school-home-metrics i[data-icon],
body.page-school-detail .school-intro-notes i[data-icon],
body.page-school-detail .school-major-summary i[data-icon],
body.page-school-detail .school-major-table i[data-icon],
body.page-school-detail .school-detail-side-list i[data-icon],
body.page-school-detail .school-side-status i[data-icon] {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: currentColor;
}

body.page-school-detail .school-profile-tabs a span[data-icon]::after,
body.page-school-detail .school-panel-icon[data-icon]::after,
body.page-school-detail .school-news-icon[data-icon]::after,
body.page-school-detail .school-subject-grid i[data-icon]::after,
body.page-school-detail .school-home-table i[data-icon]::after,
body.page-school-detail .school-home-metrics i[data-icon]::after,
body.page-school-detail .school-intro-notes i[data-icon]::after,
body.page-school-detail .school-major-summary i[data-icon]::after,
body.page-school-detail .school-major-table i[data-icon]::after,
body.page-school-detail .school-detail-side-list i[data-icon]::after,
body.page-school-detail .school-side-status i[data-icon]::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}

body.page-school-detail .school-profile-tabs a:nth-child(1) span[data-icon] {
  color: #2563eb;
}

body.page-school-detail .school-profile-tabs a:nth-child(2) span[data-icon] {
  color: #10b981;
}

body.page-school-detail .school-profile-tabs a:nth-child(3) span[data-icon] {
  color: #f59e0b;
}

body.page-school-detail .school-profile-tabs a:nth-child(4) span[data-icon] {
  color: #ec4899;
}

body.page-school-detail .school-panel-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

body.page-school-detail .school-panel-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
}

body.page-school-detail .school-panel-icon[data-icon]::after {
  width: 17px;
  height: 17px;
}

body.page-school-detail .school-panel:nth-of-type(3n) .school-panel-icon {
  background: #ecfdf5;
  color: #059669;
}

body.page-school-detail .school-panel:nth-of-type(3n + 1) .school-panel-icon {
  background: #fff7ed;
  color: #ea580c;
}

body.page-school-detail .school-panel-head h2::after,
body.page-school-detail .school-panel-head h2::before {
  content: none;
}

body.page-school-detail .school-home-table p {
  position: relative;
  overflow: hidden;
}

body.page-school-detail .school-home-table p span,
body.page-school-detail .school-detail-side-list p span,
body.page-school-detail .school-side-status p span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

body.page-school-detail .school-home-table i[data-icon],
body.page-school-detail .school-detail-side-list i[data-icon],
body.page-school-detail .school-side-status i[data-icon] {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
}

body.page-school-detail .school-home-table i[data-icon]::after,
body.page-school-detail .school-detail-side-list i[data-icon]::after,
body.page-school-detail .school-side-status i[data-icon]::after {
  width: 14px;
  height: 14px;
}

body.page-school-detail .school-home-table p:nth-child(2n) i[data-icon],
body.page-school-detail .school-side-status p:nth-child(2n) i[data-icon] {
  background: #ecfdf5;
  color: #059669;
}

body.page-school-detail .school-home-table p:nth-child(3n) i[data-icon],
body.page-school-detail .school-side-status p:nth-child(3n) i[data-icon] {
  background: #fff7ed;
  color: #ea580c;
}

body.page-school-detail .school-home-table p:nth-child(4n) i[data-icon],
body.page-school-detail .school-side-status p:nth-child(4n) i[data-icon] {
  background: #fdf2f8;
  color: #db2777;
}

body.page-school-detail .school-home-metrics p {
  position: relative;
  overflow: hidden;
  padding-left: 54px;
}

body.page-school-detail .school-home-metrics i[data-icon] {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
}

body.page-school-detail .school-home-metrics i[data-icon]::after {
  width: 16px;
  height: 16px;
}

body.page-school-detail .school-home-metrics p:nth-child(2) i[data-icon] {
  background: #ecfdf5;
  color: #059669;
}

body.page-school-detail .school-home-metrics p:nth-child(3) i[data-icon] {
  background: #fff7ed;
  color: #ea580c;
}

body.page-school-detail .school-home-metrics p:nth-child(4) i[data-icon] {
  background: #fdf2f8;
  color: #db2777;
}

body.page-school-detail .school-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
  align-items: stretch;
}

body.page-school-detail .school-module-picture {
  min-height: 150px;
  border: 1px solid #dce8f6;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.72)),
    url("../assets/generated/school-campus-admission-20260618.png") center right / cover no-repeat;
}

body.page-school-detail .school-intro-notes p {
  position: relative;
  padding-left: 52px;
}

body.page-school-detail .school-intro-notes i[data-icon] {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #ecfdf5;
  color: #059669;
}

body.page-school-detail .school-intro-notes p:nth-child(2) i[data-icon] {
  background: #fff7ed;
  color: #ea580c;
}

body.page-school-detail .school-intro-notes i[data-icon]::after {
  width: 15px;
  height: 15px;
}

body.page-school-detail .school-major-summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
}

body.page-school-detail .school-major-summary i[data-icon] {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
}

body.page-school-detail .school-major-summary i[data-icon]::after {
  width: 19px;
  height: 19px;
}

body.page-school-detail .school-major-table td:first-child {
  white-space: nowrap;
}

body.page-school-detail .school-major-table td:first-child i[data-icon] {
  width: 22px;
  height: 22px;
  margin-right: 7px;
  border-radius: 7px;
  background: #f0f9ff;
  color: #0284c7;
  vertical-align: -6px;
}

body.page-school-detail .school-major-table td:first-child i[data-icon]::after {
  width: 13px;
  height: 13px;
}

body.page-school-detail .school-subject-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}

body.page-school-detail .school-subject-grid article::before {
  content: none;
}

body.page-school-detail .school-subject-grid i[data-icon] {
  grid-row: 1 / 4;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
}

body.page-school-detail .school-subject-grid i[data-icon]::after {
  width: 19px;
  height: 19px;
}

body.page-school-detail .school-subject-grid article:nth-child(2) i[data-icon] {
  background: #ecfdf5;
  color: #059669;
}

body.page-school-detail .school-subject-grid article:nth-child(3) i[data-icon] {
  background: #fff7ed;
  color: #ea580c;
}

body.page-school-detail .school-subject-grid article:nth-child(4) i[data-icon] {
  background: #fdf2f8;
  color: #db2777;
}

body.page-school-detail .school-news-block-head > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

body.page-school-detail .school-news-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #eff6ff;
  color: #2563eb;
}

body.page-school-detail .school-news-icon[data-icon]::after {
  width: 16px;
  height: 16px;
}

body.page-school-detail .school-news-block:nth-child(2n) .school-news-icon {
  background: #ecfdf5;
  color: #059669;
}

body.page-school-detail .school-news-block:nth-child(3n) .school-news-icon {
  background: #fff7ed;
  color: #ea580c;
}

body.page-school-detail .school-news-block:nth-child(4n) .school-news-icon {
  background: #fdf2f8;
  color: #db2777;
}

body.page-school-detail .school-news-tabs span {
  position: relative;
  overflow: hidden;
}

body.page-school-detail .school-news-tabs span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: #38bdf8;
}

body.page-school-detail .school-news-tabs span:nth-child(2n)::before {
  background: #34d399;
}

body.page-school-detail .school-news-tabs span:nth-child(3n)::before {
  background: #f59e0b;
}

body.page-school-detail .school-news-tabs span:nth-child(4n)::before {
  background: #fb7185;
}

body.page-school-detail .school-home-metrics p:nth-child(4) strong {
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

@media (max-width: 1100px) {
  body.page-school-detail .school-detail-titleline {
    padding-right: 36px;
  }

  body.page-school-detail .school-detail-titleline::after {
    width: 44%;
    opacity: 0.22;
  }
}

@media (max-width: 760px) {
  body.page-school-detail .cms-header .topbar {
    height: auto;
    align-items: center;
  }

  body.page-school-detail .cms-header .brand {
    order: 1;
    flex: 0 0 100%;
    height: 42px;
  }

  body.page-school-detail .cms-header .top-actions {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-left: 0;
    gap: 8px;
  }

  body.page-school-detail .cms-header .top-actions .cms-btn {
    width: 100%;
    max-width: none;
    flex: none;
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
    white-space: nowrap;
  }

  body.page-school-detail .cms-header .nav-links {
    order: 3;
  }

  body.page-school-detail .school-detail-titleline {
    min-height: 0;
    padding-right: 24px;
  }

  body.page-school-detail .school-detail-titleline::after {
    display: none;
  }

  body.page-school-detail .school-panel-title {
    align-items: flex-start;
  }

  body.page-school-detail .school-subject-grid article {
    grid-template-columns: 38px minmax(0, 1fr);
  }
}

/* School detail professional density pass - v28 */
body.page-school-detail .school-detail-main {
  width: min(100% - 32px, 1240px);
}

body.page-school-detail .school-detail-hero {
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: 26px 28px;
  border-color: #d8e2ef;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

body.page-school-detail .school-detail-hero::before {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.06), rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 92% 18%, rgba(20, 184, 166, 0.12), transparent 24%);
}

body.page-school-detail .school-detail-heading h1 {
  margin-bottom: 7px;
  font-size: 32px;
}

body.page-school-detail .school-detail-heading p {
  margin-bottom: 11px;
  line-height: 1.55;
}

body.page-school-detail .school-detail-keyfacts {
  gap: 8px;
}

body.page-school-detail .school-detail-keyfacts span {
  min-height: 92px;
  padding: 13px 12px;
  background: #fbfdff;
}

body.page-school-detail .school-detail-keyfacts strong {
  font-size: 21px;
}

body.page-school-detail .school-detail-layout {
  grid-template-columns: minmax(0, 1fr) 305px;
}

body.page-school-detail .school-redesign-content {
  gap: 14px;
}

body.page-school-detail .school-panel,
body.page-school-detail .school-side-panel {
  padding: 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

body.page-school-detail .school-panel-head {
  margin-bottom: 13px;
  padding-bottom: 12px;
}

body.page-school-detail .school-panel-head p {
  max-width: 470px;
  color: #526174;
}

body.page-school-detail .school-panel h2,
body.page-school-detail .school-panel-head h2,
body.page-school-detail .school-side-panel h3 {
  font-size: 20px;
}

body.page-school-detail .school-home-layout {
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 12px;
}

body.page-school-detail .school-home-table {
  gap: 8px;
}

body.page-school-detail .school-home-table p,
body.page-school-detail .school-detail-side-list p,
body.page-school-detail .school-side-status p {
  min-height: 44px;
  padding: 9px 11px;
  background: #fff;
}

body.page-school-detail .school-home-table p:nth-child(4n + 1),
body.page-school-detail .school-side-status p:nth-child(4n + 1) {
  border-left: 3px solid #38bdf8;
}

body.page-school-detail .school-home-table p:nth-child(4n + 2),
body.page-school-detail .school-side-status p:nth-child(4n + 2) {
  border-left: 3px solid #34d399;
}

body.page-school-detail .school-home-table p:nth-child(4n + 3),
body.page-school-detail .school-side-status p:nth-child(4n + 3) {
  border-left: 3px solid #f59e0b;
}

body.page-school-detail .school-home-table p:nth-child(4n),
body.page-school-detail .school-side-status p:nth-child(4n) {
  border-left: 3px solid #fb7185;
}

body.page-school-detail .school-home-metrics {
  gap: 8px;
}

body.page-school-detail .school-home-metrics p {
  min-height: 78px;
  padding: 12px;
  background: #fbfdff;
}

body.page-school-detail .school-home-metrics strong {
  font-size: 22px;
}

body.page-school-detail .school-home-metrics p:nth-child(3) strong,
body.page-school-detail .school-home-metrics p:nth-child(4) strong {
  font-size: 18px;
}

body.page-school-detail .school-home-strategy {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #fbfdff;
}

body.page-school-detail .school-home-strategy p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}

body.page-school-detail .school-home-strategy strong {
  margin-right: 2px;
  color: #0f172a;
  font-size: 14px;
}

body.page-school-detail .school-home-strategy span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #dce8f6;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

body.page-school-detail .school-intro-layout {
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 14px;
}

body.page-school-detail .school-intro-copy {
  min-width: 0;
}

body.page-school-detail .school-intro-text {
  min-height: auto;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #26364a;
}

body.page-school-detail .school-intro-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

body.page-school-detail .school-intro-ledger div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #fff;
}

body.page-school-detail .school-intro-ledger dt {
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

body.page-school-detail .school-intro-ledger dd {
  margin: 0;
  color: #172033;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 850;
  overflow-wrap: anywhere;
}

body.page-school-detail .school-module-picture {
  min-height: 132px;
}

body.page-school-detail .school-major-summary {
  margin-bottom: 12px;
}

body.page-school-detail .school-major-table th,
body.page-school-detail .school-major-table td {
  padding: 10px 12px;
}

body.page-school-detail .school-major-ledger td:nth-child(2) {
  color: #1269f3;
  font-weight: 850;
}

body.page-school-detail .school-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.page-school-detail .school-checklist-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #fff;
}

body.page-school-detail .school-checklist-grid i[data-icon] {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
}

body.page-school-detail .school-checklist-grid article:nth-child(2) i[data-icon] {
  background: #ecfdf5;
  color: #059669;
}

body.page-school-detail .school-checklist-grid article:nth-child(3) i[data-icon] {
  background: #fff7ed;
  color: #ea580c;
}

body.page-school-detail .school-checklist-grid article:nth-child(4) i[data-icon] {
  background: #fdf2f8;
  color: #db2777;
}

body.page-school-detail .school-checklist-grid i[data-icon]::after {
  width: 19px;
  height: 19px;
}

body.page-school-detail .school-checklist-grid strong,
body.page-school-detail .school-checklist-grid span,
body.page-school-detail .school-checklist-grid em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.page-school-detail .school-checklist-grid strong {
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
}

body.page-school-detail .school-checklist-grid span {
  margin-bottom: 4px;
  color: #1269f3;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 850;
}

body.page-school-detail .school-checklist-grid em {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  font-style: normal;
}

body.page-school-detail .school-side-verify ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: verify;
}

body.page-school-detail .school-side-verify li {
  position: relative;
  min-width: 0;
  padding: 10px 10px 10px 40px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #fff;
  counter-increment: verify;
}

body.page-school-detail .school-side-verify li::before {
  content: counter(verify);
  position: absolute;
  left: 10px;
  top: 11px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
}

body.page-school-detail .school-side-verify strong,
body.page-school-detail .school-side-verify span {
  display: block;
  overflow-wrap: anywhere;
}

body.page-school-detail .school-side-verify strong {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
}

body.page-school-detail .school-side-verify span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

body.page-school-detail .school-news-grid {
  gap: 12px;
}

body.page-school-detail .school-news-block {
  padding: 14px;
  background: #fff;
}

@media (max-width: 1100px) {
  body.page-school-detail .school-detail-hero,
  body.page-school-detail .school-detail-layout,
  body.page-school-detail .school-home-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body.page-school-detail .school-panel,
  body.page-school-detail .school-side-panel,
  body.page-school-detail .school-detail-hero {
    padding: 18px;
  }

  body.page-school-detail .school-home-table,
  body.page-school-detail .school-intro-ledger,
  body.page-school-detail .school-checklist-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-school-detail .school-intro-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-school-detail .school-module-picture {
    min-height: 120px;
  }
}

/* v28 screenshot fixes */
body.page-school-detail .school-detail-titleline {
  min-height: 210px;
  padding-right: 340px;
}

body.page-school-detail .school-detail-titleline::after {
  right: 18px;
  width: 318px;
}

body.page-school-detail .school-detail-heading {
  max-width: 390px;
}

body.page-school-detail .school-detail-heading h1 {
  overflow-wrap: normal;
  word-break: keep-all;
}

body.page-school-detail .school-home-metrics p {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-content: center;
  padding: 12px;
}

body.page-school-detail .school-home-metrics {
  grid-template-columns: minmax(0, 1fr);
}

body.page-school-detail .school-home-metrics p:first-child {
  grid-column: auto;
}

body.page-school-detail .school-home-metrics i[data-icon] {
  position: static;
  grid-row: 1 / 3;
  align-self: center;
  width: 34px;
  height: 34px;
}

body.page-school-detail .school-home-metrics i[data-icon]::after {
  width: 17px;
  height: 17px;
}

body.page-school-detail .school-home-metrics strong,
body.page-school-detail .school-home-metrics span {
  grid-column: 2;
  min-width: 0;
}

@media (max-width: 1100px) {
  body.page-school-detail .school-detail-titleline {
    padding-right: 300px;
  }

  body.page-school-detail .school-detail-titleline::after {
    width: 280px;
  }
}

@media (max-width: 760px) {
  body.page-school-detail .school-detail-titleline {
    padding-right: 24px;
  }

  body.page-school-detail .school-detail-heading {
    max-width: none;
  }

  body.page-school-detail .cms-header .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    height: auto;
    gap: 10px;
    padding: 12px 16px 10px;
    overflow: hidden;
  }

  body.page-school-detail .cms-header .brand,
  body.page-school-detail .cms-header .top-actions,
  body.page-school-detail .cms-header .nav-links {
    width: 100%;
    max-width: 100%;
  }

  body.page-school-detail .cms-header .brand {
    justify-self: start;
    height: auto;
  }

  body.page-school-detail .cms-header .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }

  body.page-school-detail .cms-header .top-actions .cms-btn {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 14px;
  }

  body.page-school-detail .cms-header .top-actions .mini-program-trigger,
  body.page-school-detail .cms-header .top-actions .login-main {
    width: min(100%, 128px);
    max-width: 128px;
  }

  body.page-school-detail .cms-header .top-actions .mini-program-trigger {
    justify-self: end;
  }

  body.page-school-detail .cms-header .top-actions .login-main {
    justify-self: start;
    padding-right: 8px;
    padding-left: 8px;
  }

  body.page-school-detail .cms-header .nav-links {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.page-school-detail .cms-header .nav-links a {
    flex: 0 0 auto;
  }

  body.page-school-detail .school-profile-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.page-school-detail .school-profile-tabs a {
    flex: 0 0 auto;
  }
}

/* v29: site-brand youthful palette */
body.page-school-detail {
  --school-primary: #1269f3;
  --school-primary-dark: #0756d6;
  --school-sky: #35b7ff;
  --school-mint: #16b981;
  --school-amber: #ff9f1c;
  --school-rose: #ff6b8a;
  --school-ink: #102033;
  --school-muted: #5d6b82;
  --school-line: #d8e6f7;
  --school-soft: #f5f9ff;
  --school-warm: #fff8ed;
  background: linear-gradient(180deg, #f6faff 0%, #f9fbff 42%, #ffffff 100%);
}

body.page-school-detail .breadcrumb a,
body.page-school-detail .school-detail-heading h1,
body.page-school-detail .school-panel h2,
body.page-school-detail .school-panel-head h2,
body.page-school-detail .school-side-panel h3 {
  color: var(--school-ink);
}

body.page-school-detail .school-detail-hero,
body.page-school-detail .school-panel,
body.page-school-detail .school-side-panel,
body.page-school-detail .school-profile-tabs {
  border-color: var(--school-line);
  box-shadow: 0 12px 32px rgba(18, 105, 243, 0.055);
}

body.page-school-detail .school-detail-hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,253,255,0.98)),
    radial-gradient(circle at 18% 16%, rgba(53,183,255,0.11), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(255,159,28,0.12), transparent 22%);
}

body.page-school-detail .school-detail-hero::before {
  background: linear-gradient(90deg, rgba(18,105,243,0.08), rgba(255,159,28,0.055) 52%, rgba(255,255,255,0) 82%);
}

body.page-school-detail .school-detail-titleline::before {
  background: linear-gradient(180deg, var(--school-sky), var(--school-primary) 54%, var(--school-amber));
}

body.page-school-detail .school-detail-kicker {
  border-color: #cfe2ff;
  background: #eef6ff;
  color: var(--school-primary-dark);
}

body.page-school-detail .school-detail-tags span {
  background: #fff;
}

body.page-school-detail .school-detail-tags span:nth-child(1) {
  border-color: #cfe2ff;
  color: var(--school-primary-dark);
}

body.page-school-detail .school-detail-tags span:nth-child(2) {
  border-color: #bfeadf;
  background: #effdf7;
  color: #047857;
}

body.page-school-detail .school-detail-tags span:nth-child(3) {
  border-color: #ffe0a8;
  background: var(--school-warm);
  color: #b45309;
}

body.page-school-detail .school-detail-keyfacts span {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

body.page-school-detail .school-detail-keyfacts strong,
body.page-school-detail .school-home-metrics strong,
body.page-school-detail .school-major-ledger td:nth-child(2),
body.page-school-detail .school-checklist-grid span,
body.page-school-detail .school-news-block a:hover {
  color: var(--school-primary-dark);
}

body.page-school-detail .school-profile-tabs a:first-child,
body.page-school-detail .school-profile-tabs a:hover {
  background: linear-gradient(135deg, #eaf5ff, #fff8ed);
  color: var(--school-primary-dark);
}

body.page-school-detail .school-profile-tabs a:first-child span[data-icon],
body.page-school-detail .school-profile-tabs a:hover span[data-icon] {
  color: var(--school-primary);
}

body.page-school-detail .school-panel-icon {
  background: #eef6ff;
  color: var(--school-primary);
}

body.page-school-detail .school-panel:nth-of-type(3n) .school-panel-icon,
body.page-school-detail .school-home-table p:nth-child(2n) i[data-icon],
body.page-school-detail .school-side-status p:nth-child(2n) i[data-icon],
body.page-school-detail .school-checklist-grid article:nth-child(2) i[data-icon],
body.page-school-detail .school-subject-grid article:nth-child(2) i[data-icon],
body.page-school-detail .school-news-block:nth-child(2n) .school-news-icon {
  background: #ecfdf7;
  color: var(--school-mint);
}

body.page-school-detail .school-panel:nth-of-type(3n + 1) .school-panel-icon,
body.page-school-detail .school-home-table p:nth-child(3n) i[data-icon],
body.page-school-detail .school-side-status p:nth-child(3n) i[data-icon],
body.page-school-detail .school-checklist-grid article:nth-child(3) i[data-icon],
body.page-school-detail .school-subject-grid article:nth-child(3) i[data-icon],
body.page-school-detail .school-news-block:nth-child(3n) .school-news-icon {
  background: var(--school-warm);
  color: var(--school-amber);
}

body.page-school-detail .school-home-table p:nth-child(4n) i[data-icon],
body.page-school-detail .school-side-status p:nth-child(4n) i[data-icon],
body.page-school-detail .school-checklist-grid article:nth-child(4) i[data-icon],
body.page-school-detail .school-subject-grid article:nth-child(4) i[data-icon],
body.page-school-detail .school-news-block:nth-child(4n) .school-news-icon {
  background: #fff1f4;
  color: var(--school-rose);
}

body.page-school-detail .school-home-table p:nth-child(4n + 1),
body.page-school-detail .school-side-status p:nth-child(4n + 1) {
  border-left-color: var(--school-sky);
}

body.page-school-detail .school-home-table p:nth-child(4n + 2),
body.page-school-detail .school-side-status p:nth-child(4n + 2) {
  border-left-color: var(--school-mint);
}

body.page-school-detail .school-home-table p:nth-child(4n + 3),
body.page-school-detail .school-side-status p:nth-child(4n + 3) {
  border-left-color: var(--school-amber);
}

body.page-school-detail .school-home-table p:nth-child(4n),
body.page-school-detail .school-side-status p:nth-child(4n) {
  border-left-color: var(--school-rose);
}

body.page-school-detail .school-home-strategy {
  background: linear-gradient(90deg, #f3f9ff, #ffffff 54%, #fffaf2);
}

body.page-school-detail .school-home-strategy span,
body.page-school-detail .school-news-tabs span {
  border-color: #d7e8fb;
  background: #ffffff;
}

body.page-school-detail .school-news-tabs em {
  background: linear-gradient(135deg, var(--school-primary), var(--school-sky));
}

body.page-school-detail .school-news-tabs span::before {
  background: var(--school-sky);
}

body.page-school-detail .school-news-tabs span:nth-child(2n)::before {
  background: var(--school-mint);
}

body.page-school-detail .school-news-tabs span:nth-child(3n)::before {
  background: var(--school-amber);
}

body.page-school-detail .school-news-tabs span:nth-child(4n)::before {
  background: var(--school-rose);
}

body.page-school-detail .school-module-picture {
  border-color: #d7e8fb;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.66);
}

body.page-school-detail .school-side-verify li::before {
  background: linear-gradient(135deg, #eaf5ff, #fff8ed);
  color: var(--school-primary-dark);
}

/* v37: desktop hero rebuild */
@media (min-width: 761px) {
  body.page-school-detail .school-detail-hero {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 18px;
    padding: 22px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 16px 42px rgba(18, 105, 243, 0.075);
  }

  body.page-school-detail .school-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 16% 18%, rgba(18, 105, 243, 0.08), transparent 23%),
      linear-gradient(90deg, rgba(18, 105, 243, 0.05), rgba(255,255,255,0) 46%);
  }

  body.page-school-detail .school-detail-titleline {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 178px;
    padding: 30px 300px 30px 34px;
    overflow: hidden;
    border: 1px solid #dcecff;
    border-radius: 12px;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 48%, rgba(255,255,255,0.72) 67%, rgba(255,255,255,0.2) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  }

  body.page-school-detail .school-detail-titleline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(180deg, #1269f3, #35b7ff 58%, #ff9f1c);
  }

  body.page-school-detail .school-detail-titleline::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    width: 310px;
    height: 100%;
    border-radius: 0;
    background:
      linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.72) 24%, rgba(255,255,255,0.08) 100%),
      url("../assets/generated/school-campus-admission-20260618.png") center right / cover no-repeat;
    box-shadow: none;
    opacity: 1;
  }

  body.page-school-detail .school-detail-logo,
  body.page-school-detail .school-detail-heading {
    position: relative;
    z-index: 1;
  }

  body.page-school-detail .school-detail-logo {
    width: 68px;
    height: 68px;
    border-color: #cfe2ff;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(18, 105, 243, 0.12);
  }

  body.page-school-detail .school-detail-logo-image img {
    padding: 8px;
  }

  body.page-school-detail .school-detail-heading {
    max-width: 440px;
  }

  body.page-school-detail .school-detail-kicker {
    height: 25px;
    margin-bottom: 8px;
    border-color: #bfdcff;
    background: #eef7ff;
  }

  body.page-school-detail .school-detail-heading h1 {
    margin-bottom: 7px;
    font-size: 32px;
    line-height: 1.12;
  }

  body.page-school-detail .school-detail-heading p {
    margin-bottom: 11px;
    color: #42536a;
    font-size: 14px;
  }

  body.page-school-detail .school-detail-tags span {
    height: 27px;
    border-radius: 999px;
  }

  body.page-school-detail .school-detail-keyfacts {
    position: relative;
    z-index: 1;
    display: grid;
    align-self: stretch;
    border: 1px solid #dcecff;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  }

  body.page-school-detail .school-detail-keyfacts::before {
    content: "报考摘要";
    display: block;
    padding: 15px 18px 4px;
    color: #102033;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 850;
  }

  body.page-school-detail .school-detail-keyfacts span {
    display: grid;
    align-content: center;
    min-height: 0;
    padding: 10px 18px;
    border-bottom: 1px solid #e4eefb;
    background: transparent;
  }

  body.page-school-detail .school-detail-keyfacts span:last-child {
    border-bottom: 0;
    padding-bottom: 16px;
  }

  body.page-school-detail .school-detail-keyfacts em {
    margin: 0 0 5px;
    color: #64758d;
    font-size: 12px;
  }

  body.page-school-detail .school-detail-keyfacts strong {
    color: #0756d6;
    font-size: 22px;
    line-height: 1.15;
  }
}

/* v38: single-piece desktop hero */
@media (min-width: 761px) {
  body.page-school-detail .school-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(18, 105, 243, 0.075);
  }

  body.page-school-detail .school-detail-hero::before {
    background:
      linear-gradient(90deg, rgba(18,105,243,0.07), rgba(255,255,255,0) 42%),
      linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  }

  body.page-school-detail .school-detail-titleline {
    min-height: 178px;
    padding: 34px 440px 28px 46px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.page-school-detail .school-detail-titleline::before {
    left: 0;
    top: 28px;
    width: 5px;
    height: calc(100% - 56px);
    border-radius: 0 999px 999px 0;
  }

  body.page-school-detail .school-detail-titleline::after {
    width: 430px;
    background:
      linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.76) 18%, rgba(255,255,255,0.08) 78%),
      url("../assets/generated/school-campus-admission-20260618.png") center right / cover no-repeat;
  }

  body.page-school-detail .school-detail-logo {
    width: 70px;
    height: 70px;
  }

  body.page-school-detail .school-detail-heading h1 {
    font-size: 34px;
  }

  body.page-school-detail .school-detail-keyfacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-width: 1px 0 0;
    border-color: #e1ecfb;
    border-radius: 0;
    background: rgba(248, 251, 255, 0.86);
  }

  body.page-school-detail .school-detail-keyfacts::before {
    content: none;
  }

  body.page-school-detail .school-detail-keyfacts span {
    min-height: 74px;
    padding: 14px 24px;
    border-right: 1px solid #e1ecfb;
    border-bottom: 0;
    background: transparent;
  }

  body.page-school-detail .school-detail-keyfacts span:last-child {
    border-right: 0;
    padding-bottom: 14px;
  }

  body.page-school-detail .school-detail-keyfacts em {
    color: #64758d;
  }

  body.page-school-detail .school-detail-keyfacts strong {
    font-size: 24px;
  }
}

/* v36: remove duplicated summary blocks */
body.page-school-detail .school-home-panel .school-home-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.page-school-detail .school-home-panel .school-home-table {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* v34: stronger icon style */
body.page-school-detail .school-profile-tabs a span[data-icon],
body.page-school-detail .school-panel-icon,
body.page-school-detail .school-news-icon,
body.page-school-detail .school-subject-grid i[data-icon],
body.page-school-detail .school-home-table i[data-icon],
body.page-school-detail .school-home-metrics i[data-icon],
body.page-school-detail .school-intro-notes i[data-icon],
body.page-school-detail .school-major-summary i[data-icon],
body.page-school-detail .school-major-table i[data-icon],
body.page-school-detail .school-detail-side-list i[data-icon],
body.page-school-detail .school-side-status i[data-icon],
body.page-school-detail .school-checklist-grid i[data-icon] {
  opacity: 1;
  filter: none;
}

body.page-school-detail .school-panel-icon,
body.page-school-detail .school-news-icon,
body.page-school-detail .school-home-table i[data-icon],
body.page-school-detail .school-detail-side-list i[data-icon],
body.page-school-detail .school-side-status i[data-icon] {
  border: 1px solid rgba(18, 105, 243, 0.22);
  background: #eaf4ff;
  color: #0756d6;
}

body.page-school-detail .school-profile-tabs a span[data-icon]::after,
body.page-school-detail .school-panel-icon[data-icon]::after,
body.page-school-detail .school-news-icon[data-icon]::after,
body.page-school-detail .school-subject-grid i[data-icon]::after,
body.page-school-detail .school-home-table i[data-icon]::after,
body.page-school-detail .school-home-metrics i[data-icon]::after,
body.page-school-detail .school-intro-notes i[data-icon]::after,
body.page-school-detail .school-major-summary i[data-icon]::after,
body.page-school-detail .school-major-table i[data-icon]::after,
body.page-school-detail .school-detail-side-list i[data-icon]::after,
body.page-school-detail .school-side-status i[data-icon]::after,
body.page-school-detail .school-checklist-grid i[data-icon]::after {
  background: currentColor;
  transform: scale(1.08);
}

body.page-school-detail .school-panel-icon {
  box-shadow: 0 6px 14px rgba(18, 105, 243, 0.1);
}

body.page-school-detail .school-home-metrics i[data-icon],
body.page-school-detail .school-subject-grid i[data-icon],
body.page-school-detail .school-checklist-grid i[data-icon],
body.page-school-detail .school-major-summary i[data-icon] {
  border: 1px solid rgba(18, 105, 243, 0.2);
  background: #eaf4ff;
  color: #0756d6;
  box-shadow: 0 7px 16px rgba(18, 105, 243, 0.08);
}

body.page-school-detail .school-home-table p:nth-child(2n) i[data-icon],
body.page-school-detail .school-side-status p:nth-child(2n) i[data-icon],
body.page-school-detail .school-checklist-grid article:nth-child(2) i[data-icon],
body.page-school-detail .school-subject-grid article:nth-child(2) i[data-icon],
body.page-school-detail .school-news-block:nth-child(2n) .school-news-icon {
  border-color: rgba(5, 150, 105, 0.22);
  background: #e6fbf3;
  color: #047857;
}

body.page-school-detail .school-home-table p:nth-child(3n) i[data-icon],
body.page-school-detail .school-side-status p:nth-child(3n) i[data-icon],
body.page-school-detail .school-checklist-grid article:nth-child(3) i[data-icon],
body.page-school-detail .school-subject-grid article:nth-child(3) i[data-icon],
body.page-school-detail .school-news-block:nth-child(3n) .school-news-icon {
  border-color: rgba(217, 119, 6, 0.24);
  background: #fff3dc;
  color: #b45309;
}

body.page-school-detail .school-home-table p:nth-child(4n) i[data-icon],
body.page-school-detail .school-side-status p:nth-child(4n) i[data-icon],
body.page-school-detail .school-checklist-grid article:nth-child(4) i[data-icon],
body.page-school-detail .school-subject-grid article:nth-child(4) i[data-icon],
body.page-school-detail .school-news-block:nth-child(4n) .school-news-icon {
  border-color: rgba(225, 29, 72, 0.22);
  background: #fff0f4;
  color: #be123c;
}

@media (min-width: 761px) {
  body.page-school-detail .school-panel-icon {
    width: 30px;
    height: 30px;
  }

  body.page-school-detail .school-home-table i[data-icon],
  body.page-school-detail .school-detail-side-list i[data-icon],
  body.page-school-detail .school-side-status i[data-icon] {
    width: 24px;
    height: 24px;
  }
}

body.page-school-detail .school-news-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #d8e8fb;
  border-radius: 9px;
  background: linear-gradient(90deg, #f3f9ff, #ffffff);
}

body.page-school-detail .school-news-status strong {
  flex: 0 0 auto;
  color: var(--school-primary-dark);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 850;
}

body.page-school-detail .school-news-status span {
  min-width: 0;
  color: #5d6b82;
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

/* v30: element-by-element UI detail pass */
body.page-school-detail .school-detail-main {
  padding-top: 22px;
}

body.page-school-detail .breadcrumb {
  margin-bottom: 14px;
  color: #66758a;
  font-size: 13px;
}

body.page-school-detail .school-detail-hero {
  grid-template-columns: minmax(0, 1fr) 334px;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 10px;
}

body.page-school-detail .school-detail-titleline {
  min-height: 188px;
  padding: 20px 324px 20px 108px;
  align-items: center;
}

body.page-school-detail .school-detail-titleline::before {
  left: 0;
  top: 16px;
  width: 4px;
  height: calc(100% - 32px);
  border-radius: 999px;
}

body.page-school-detail .school-detail-titleline::after {
  top: 16px;
  right: 12px;
  width: 292px;
  height: calc(100% - 32px);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.18) 46%, rgba(255,255,255,0.06) 100%),
    url("../assets/generated/school-campus-admission-20260618.png") center right / cover no-repeat;
  opacity: 1;
}

body.page-school-detail .school-detail-logo {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 105, 243, 0.08);
}

body.page-school-detail .school-detail-logo-image img {
  padding: 8px;
}

body.page-school-detail .school-detail-kicker {
  height: 24px;
  margin-bottom: 8px;
  padding: 0 9px;
  font-size: 12px;
}

body.page-school-detail .school-detail-logo.icon-slot {
  display: grid;
  place-items: center;
  background: #fff;
  color: #0284c7;
  mask: none;
  -webkit-mask: none;
}

body.page-school-detail .school-detail-logo.icon-slot::before {
  content: none !important;
}

body.page-school-detail .school-detail-logo.icon-slot::after {
  content: "" !important;
  display: block;
  width: 34px;
  height: 34px;
  background: currentColor;
  mask: var(--icon-url) center / contain no-repeat;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
}

body.page-school-detail .school-detail-heading h1 {
  margin-bottom: 6px;
  font-size: 31px;
  line-height: 1.18;
}

body.page-school-detail .school-detail-heading p {
  margin-bottom: 10px;
  color: #536276;
  font-size: 14px;
  line-height: 1.55;
}

body.page-school-detail .school-detail-tags {
  gap: 7px;
}

body.page-school-detail .school-detail-tags span {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

body.page-school-detail .school-detail-keyfacts {
  gap: 0;
  align-self: center;
  border: 1px solid #e2ebf6;
  border-radius: 10px;
  overflow: hidden;
  background: #fbfdff;
}

body.page-school-detail .school-detail-keyfacts span {
  min-height: 88px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #e2ebf6;
  border-radius: 0;
  background: #fbfdff;
}

body.page-school-detail .school-detail-keyfacts span:last-child {
  border-bottom: 0;
}

body.page-school-detail .school-detail-keyfacts em {
  color: #66758a;
  font-size: 12px;
}

body.page-school-detail .school-detail-keyfacts strong {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
}

body.page-school-detail .school-profile-tabs {
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
}

body.page-school-detail .school-profile-tabs a {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
}

body.page-school-detail .school-profile-tabs a:first-child,
body.page-school-detail .school-profile-tabs a:hover {
  border-color: #d5e8ff;
  background: #eef7ff;
  color: var(--school-primary-dark);
}

body.page-school-detail .school-panel,
body.page-school-detail .school-side-panel {
  border-radius: 10px;
}

body.page-school-detail .school-panel-head {
  align-items: center;
}

body.page-school-detail .school-panel-title {
  gap: 9px;
}

body.page-school-detail .school-panel-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

body.page-school-detail .school-panel-icon[data-icon]::after {
  width: 16px;
  height: 16px;
}

body.page-school-detail .school-panel-head p {
  color: #66758a;
  font-size: 13px;
}

body.page-school-detail .school-home-table {
  gap: 9px;
}

body.page-school-detail .school-home-table p {
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 58px;
  padding: 11px 13px;
  border-radius: 9px;
}

body.page-school-detail .school-home-table span,
body.page-school-detail .school-detail-side-list span,
body.page-school-detail .school-side-status span {
  color: #66758a;
  font-size: 13px;
}

body.page-school-detail .school-home-table strong,
body.page-school-detail .school-detail-side-list strong,
body.page-school-detail .school-side-status strong {
  font-size: 14px;
  letter-spacing: 0;
}

body.page-school-detail .school-home-table i[data-icon],
body.page-school-detail .school-detail-side-list i[data-icon],
body.page-school-detail .school-side-status i[data-icon] {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

body.page-school-detail .school-home-table i[data-icon]::after,
body.page-school-detail .school-detail-side-list i[data-icon]::after,
body.page-school-detail .school-side-status i[data-icon]::after {
  width: 13px;
  height: 13px;
}

body.page-school-detail .school-home-metrics p {
  min-height: 72px;
  border-radius: 9px;
}

body.page-school-detail .school-home-metrics strong {
  font-size: 22px;
  line-height: 1.12;
}

body.page-school-detail .school-home-metrics span {
  color: #66758a;
  font-size: 12px;
  line-height: 1.35;
}

body.page-school-detail .school-home-strategy {
  border-radius: 9px;
}

body.page-school-detail .school-home-strategy span {
  min-height: 24px;
  font-size: 12px;
}

body.page-school-detail .school-side-panel h3::after {
  width: 40px;
  height: 3px;
  border-radius: 999px;
}

body.page-school-detail .school-detail-side-list,
body.page-school-detail .school-side-status > div {
  gap: 9px;
}

body.page-school-detail .school-detail-side-list p,
body.page-school-detail .school-side-status p {
  min-height: 46px;
  border-radius: 9px;
}

body.page-school-detail .school-side-verify li {
  border-radius: 9px;
}

body.page-school-detail .school-intro-text {
  font-size: 15px;
  line-height: 1.78;
}

body.page-school-detail .school-intro-ledger div,
body.page-school-detail .school-checklist-grid article,
body.page-school-detail .school-subject-grid article,
body.page-school-detail .school-news-block {
  border-radius: 9px;
}

body.page-school-detail .school-major-summary {
  border-radius: 9px;
}

body.page-school-detail .school-major-table {
  border-radius: 9px;
}

@media (max-width: 1100px) {
  body.page-school-detail .school-detail-titleline {
    padding-right: 300px;
  }

  body.page-school-detail .school-detail-titleline::after {
    width: 270px;
  }
}

@media (max-width: 760px) {
  body.page-school-detail .school-detail-main {
    width: min(100% - 24px, 1240px);
    padding-top: 16px;
  }

  body.page-school-detail .breadcrumb {
    margin-bottom: 12px;
  }

  body.page-school-detail .school-detail-hero {
    gap: 0;
    padding: 18px 18px 14px;
    border-radius: 10px;
  }

  body.page-school-detail .school-detail-titleline {
    min-height: 0;
    padding: 22px 18px 20px 40px;
  }

  body.page-school-detail .school-detail-titleline::before {
    top: 18px;
    height: calc(100% - 36px);
  }

  body.page-school-detail .school-detail-logo {
    width: 66px;
    height: 66px;
    margin-bottom: 12px;
  }

  body.page-school-detail .school-detail-heading h1 {
    font-size: 28px;
    line-height: 1.18;
  }

  body.page-school-detail .school-detail-keyfacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
    border-top: 1px solid #e2ebf6;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  body.page-school-detail .school-detail-keyfacts span {
    min-height: 72px;
    padding: 12px 10px;
    border-right: 1px solid #e2ebf6;
    border-bottom: 0;
  }

  body.page-school-detail .school-detail-keyfacts span:last-child {
    border-right: 0;
  }

  body.page-school-detail .school-detail-keyfacts strong {
    font-size: 20px;
  }

  body.page-school-detail .school-profile-tabs {
    padding: 7px;
  }

  body.page-school-detail .school-profile-tabs a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  body.page-school-detail .school-panel,
  body.page-school-detail .school-side-panel {
    padding: 16px;
  }

  body.page-school-detail .school-panel-head {
    display: block;
  }

  body.page-school-detail .school-panel-head p {
    margin-top: 8px;
    text-align: left;
  }

  body.page-school-detail .school-home-table p {
    grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
    min-height: 48px;
    padding: 10px 11px;
  }

  body.page-school-detail .school-home-metrics {
    gap: 8px;
  }

  body.page-school-detail .school-home-metrics p {
    min-height: 62px;
  }
}

/* v31: desktop-only element polish */
@media (min-width: 761px) {
  body.page-school-detail .school-detail-main {
    padding-top: 20px;
  }

  body.page-school-detail .school-detail-hero {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    padding: 22px 26px;
  }

  body.page-school-detail .school-detail-titleline {
    min-height: 174px;
    padding: 20px 292px 20px 72px;
  }

  body.page-school-detail .school-detail-titleline::before {
    left: 0;
    width: 3px;
  }

  body.page-school-detail .school-detail-titleline::after {
    right: 0;
    width: 270px;
    opacity: 0.92;
    box-shadow: inset 0 0 0 1px rgba(207, 226, 255, 0.86), 0 12px 24px rgba(18, 105, 243, 0.06);
  }

  body.page-school-detail .school-detail-logo {
    width: 58px;
    height: 58px;
  }

  body.page-school-detail .school-detail-titleline {
    gap: 16px;
  }

  body.page-school-detail .school-detail-heading h1 {
    font-size: 29px;
  }

  body.page-school-detail .school-detail-heading p {
    color: #4d5f75;
  }

  body.page-school-detail .school-detail-keyfacts {
    align-self: stretch;
    display: grid;
    align-content: stretch;
  }

  body.page-school-detail .school-detail-keyfacts span {
    display: grid;
    align-content: center;
    min-height: 0;
    padding: 12px 18px;
  }

  body.page-school-detail .school-detail-keyfacts em {
    margin: 0 0 5px;
  }

  body.page-school-detail .school-detail-keyfacts strong {
    font-size: 21px;
  }

  body.page-school-detail .school-profile-tabs {
    padding: 7px;
  }

  body.page-school-detail .school-profile-tabs a {
    min-width: 112px;
  }

  body.page-school-detail .school-panel,
  body.page-school-detail .school-side-panel {
    padding: 18px;
  }

  body.page-school-detail .school-panel-head {
    margin-bottom: 12px;
    padding-bottom: 11px;
  }

  body.page-school-detail .school-panel h2,
  body.page-school-detail .school-panel-head h2,
  body.page-school-detail .school-side-panel h3 {
    font-size: 19px;
  }

  body.page-school-detail .school-panel-icon {
    width: 28px;
    height: 28px;
  }

  body.page-school-detail .school-home-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  body.page-school-detail .school-home-table p {
    min-height: 54px;
    box-shadow: inset 3px 0 0 transparent;
  }

  body.page-school-detail .school-home-table p:nth-child(4n + 1),
  body.page-school-detail .school-side-status p:nth-child(4n + 1) {
    box-shadow: inset 3px 0 0 var(--school-sky);
    border-left-color: #e1ebf6;
  }

  body.page-school-detail .school-home-table p:nth-child(4n + 2),
  body.page-school-detail .school-side-status p:nth-child(4n + 2) {
    box-shadow: inset 3px 0 0 var(--school-mint);
    border-left-color: #e1ebf6;
  }

  body.page-school-detail .school-home-table p:nth-child(4n + 3),
  body.page-school-detail .school-side-status p:nth-child(4n + 3) {
    box-shadow: inset 3px 0 0 var(--school-amber);
    border-left-color: #e1ebf6;
  }

  body.page-school-detail .school-home-table p:nth-child(4n),
  body.page-school-detail .school-side-status p:nth-child(4n) {
    box-shadow: inset 3px 0 0 var(--school-rose);
    border-left-color: #e1ebf6;
  }

  body.page-school-detail .school-home-table i[data-icon],
  body.page-school-detail .school-detail-side-list i[data-icon],
  body.page-school-detail .school-side-status i[data-icon] {
    opacity: 1;
  }

  body.page-school-detail .school-home-metrics p {
    min-height: 68px;
    background: linear-gradient(180deg, #ffffff, #f9fcff);
  }

  body.page-school-detail .school-home-strategy {
    padding: 9px 11px;
  }

  body.page-school-detail .school-detail-side-list p,
  body.page-school-detail .school-side-status p,
  body.page-school-detail .school-side-verify li {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
  }

  body.page-school-detail .school-side-panel h3 {
    margin-bottom: 13px;
  }

  body.page-school-detail .school-side-panel h3::after {
    width: 34px;
  }

  body.page-school-detail .school-intro-layout {
    grid-template-columns: minmax(0, 1fr) 160px;
  }

  body.page-school-detail .school-module-picture {
    min-height: 112px;
  }
}

/* v32: desktop hero element alignment */
@media (min-width: 761px) {
  body.page-school-detail .school-detail-hero {
    padding: 20px 24px;
  }

  body.page-school-detail .school-detail-titleline {
    min-height: 162px;
    padding: 18px 286px 18px 44px;
  }

  body.page-school-detail .school-detail-titleline::before {
    top: 32px;
    height: calc(100% - 64px);
    background: linear-gradient(180deg, var(--school-primary), var(--school-sky));
  }

  body.page-school-detail .school-detail-titleline::after {
    width: 262px;
    height: calc(100% - 28px);
    top: 14px;
  }

  body.page-school-detail .school-detail-logo {
    width: 60px;
    height: 60px;
  }

  body.page-school-detail .school-detail-heading {
    max-width: 430px;
  }

  body.page-school-detail .school-detail-heading h1 {
    font-size: 30px;
  }

  body.page-school-detail .school-detail-keyfacts {
    border-radius: 9px;
  }

  body.page-school-detail .school-detail-keyfacts span {
    padding-left: 20px;
  }
}

/* v39: final desktop hero override */
@media (min-width: 761px) {
  body.page-school-detail .school-detail-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(18, 105, 243, 0.075);
  }

  body.page-school-detail .school-detail-titleline {
    min-height: 178px !important;
    padding: 34px 440px 28px 46px !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.page-school-detail .school-detail-titleline::before {
    left: 0 !important;
    top: 28px !important;
    width: 5px !important;
    height: calc(100% - 56px) !important;
    border-radius: 0 999px 999px 0;
  }

  body.page-school-detail .school-detail-titleline::after {
    top: 0 !important;
    right: 0 !important;
    width: 430px !important;
    height: 100% !important;
    border-radius: 0;
    background:
      linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.76) 18%, rgba(255,255,255,0.08) 78%),
      url("../assets/generated/school-campus-admission-20260618.png") center right / cover no-repeat;
    opacity: 1;
  }

  body.page-school-detail .school-detail-logo {
    width: 70px !important;
    height: 70px !important;
    border-radius: 14px;
  }

  body.page-school-detail .school-detail-heading h1 {
    font-size: 34px !important;
    line-height: 1.12;
  }

  body.page-school-detail .school-detail-keyfacts {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    border-width: 1px 0 0 !important;
    border-color: #e1ecfb !important;
    border-radius: 0 !important;
    background: rgba(248, 251, 255, 0.9);
  }

  body.page-school-detail .school-detail-keyfacts::before {
    content: none !important;
  }

  body.page-school-detail .school-detail-keyfacts span {
    min-height: 76px !important;
    padding: 14px 28px !important;
    border-right: 1px solid #e1ecfb !important;
    border-bottom: 0 !important;
    background: transparent !important;
  }

  body.page-school-detail .school-detail-keyfacts span:last-child {
    border-right: 0 !important;
  }

  body.page-school-detail .school-detail-keyfacts em,
  body.page-school-detail .school-detail-keyfacts strong {
    white-space: nowrap;
  }

  body.page-school-detail .school-detail-keyfacts strong {
    font-size: 24px !important;
  }
}

/* v40: cleaner desktop school identity header */
@media (min-width: 761px) {
  body.page-school-detail .school-detail-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 326px !important;
    align-items: stretch !important;
    gap: 18px !important;
    padding: 22px !important;
    overflow: visible !important;
    border: 1px solid #d9e8fb !important;
    border-radius: 14px !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,253,255,0.98)),
      radial-gradient(circle at 82% 20%, rgba(44, 130, 255, 0.12), transparent 28%),
      radial-gradient(circle at 12% 86%, rgba(19, 190, 137, 0.10), transparent 26%) !important;
    box-shadow: 0 14px 34px rgba(27, 82, 155, 0.07) !important;
  }

  body.page-school-detail .school-detail-hero::before {
    content: none !important;
  }

  body.page-school-detail .school-detail-titleline {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-height: 178px !important;
    padding: 30px 34px 30px 38px !important;
    border: 1px solid #e5eefb !important;
    border-radius: 12px !important;
    background:
      linear-gradient(135deg, #ffffff 0%, #ffffff 58%, #f4f9ff 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9) !important;
  }

  body.page-school-detail .school-detail-titleline::before {
    left: 0 !important;
    top: 24px !important;
    width: 4px !important;
    height: calc(100% - 48px) !important;
    border-radius: 0 999px 999px 0 !important;
    background: linear-gradient(180deg, #1769e8, #21b889) !important;
  }

  body.page-school-detail .school-detail-titleline::after {
    content: "" !important;
    position: absolute !important;
    right: 24px !important;
    bottom: 20px !important;
    width: 144px !important;
    height: 88px !important;
    border-radius: 16px !important;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.06)),
      url("../assets/generated/school-campus-admission-20260618.png") center / cover no-repeat !important;
    opacity: 0.9 !important;
    box-shadow: 0 12px 26px rgba(35, 92, 166, 0.12) !important;
  }

  body.page-school-detail .school-detail-logo {
    width: 78px !important;
    height: 78px !important;
    flex: 0 0 78px !important;
    margin-right: 24px !important;
    border: 1px solid #cfe1f6 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 24px rgba(23, 105, 232, 0.12) !important;
  }

  body.page-school-detail .school-detail-logo img {
    width: 54px !important;
    height: 54px !important;
  }

  body.page-school-detail .school-detail-heading {
    max-width: 500px !important;
    position: relative !important;
    z-index: 1 !important;
  }

  body.page-school-detail .school-detail-kicker {
    height: 24px !important;
    padding: 0 10px !important;
    border: 1px solid #c9ddfb !important;
    border-radius: 999px !important;
    background: #eef6ff !important;
    color: #1769e8 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  body.page-school-detail .school-detail-heading h1 {
    margin: 9px 0 8px !important;
    color: #17233d !important;
    font-size: 36px !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
  }

  body.page-school-detail .school-detail-heading p {
    color: #51627a !important;
    font-size: 15px !important;
  }

  body.page-school-detail .school-detail-tags {
    margin-top: 14px !important;
    gap: 9px !important;
  }

  body.page-school-detail .school-detail-tags span {
    min-width: 0 !important;
    height: 26px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  body.page-school-detail .school-detail-tags span:nth-child(1) {
    border-color: #bdd7ff !important;
    background: #f1f7ff !important;
    color: #1769e8 !important;
  }

  body.page-school-detail .school-detail-tags span:nth-child(2) {
    border-color: #bfe9d9 !important;
    background: #effbf6 !important;
    color: #109b6d !important;
  }

  body.page-school-detail .school-detail-tags span:nth-child(3) {
    border-color: #ffd9a8 !important;
    background: #fff7ea !important;
    color: #d97904 !important;
  }

  body.page-school-detail .school-detail-keyfacts {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-content: center !important;
    gap: 10px !important;
    min-height: 178px !important;
    padding: 18px !important;
    border: 1px solid #e5eefb !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  body.page-school-detail .school-detail-keyfacts::before {
    content: "报考摘要" !important;
    display: block !important;
    margin: 0 0 2px !important;
    color: #25364d !important;
    font-size: 16px !important;
    font-weight: 800 !important;
  }

  body.page-school-detail .school-detail-keyfacts span {
    display: grid !important;
    grid-template-columns: 86px minmax(0, 1fr) !important;
    align-items: center !important;
    min-height: 42px !important;
    padding: 9px 13px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #f6f9fd !important;
  }

  body.page-school-detail .school-detail-keyfacts span:last-child {
    border: 0 !important;
  }

  body.page-school-detail .school-detail-keyfacts em {
    color: #708098 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  body.page-school-detail .school-detail-keyfacts strong {
    color: #1769e8 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}

/* v41: use campus image as subtle hero background */
@media (min-width: 761px) {
  body.page-school-detail .school-detail-titleline {
    min-height: 184px !important;
    padding-right: 300px !important;
    background:
      linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.98) 44%, rgba(255,255,255,0.86) 66%, rgba(255,255,255,0.58) 100%),
      url("../assets/generated/school-campus-admission-20260618.png") right center / 360px 100% no-repeat,
      linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%) !important;
  }

  body.page-school-detail .school-detail-titleline::after {
    content: none !important;
  }

  body.page-school-detail .school-detail-heading {
    max-width: 560px !important;
  }

  body.page-school-detail .school-detail-keyfacts {
    min-height: 184px !important;
  }
}

/* v42: remove heavy vertical accent from desktop hero */
@media (min-width: 761px) {
  body.page-school-detail .school-detail-titleline {
    overflow: hidden !important;
  }

  body.page-school-detail .school-detail-titleline::before {
    content: none !important;
  }

  body.page-school-detail .school-detail-kicker {
    box-shadow: 0 4px 10px rgba(23, 105, 232, 0.08) !important;
  }

  body.page-school-detail .school-detail-titleline {
    border-color: #dfeaf8 !important;
  }
}

/* v43: replace pale line icons with stronger colored badges */
body.page-school-detail .school-profile-tabs a span[data-icon],
body.page-school-detail .school-panel-icon,
body.page-school-detail .school-news-icon,
body.page-school-detail .school-home-table i[data-icon],
body.page-school-detail .school-detail-side-list i[data-icon],
body.page-school-detail .school-side-status i[data-icon],
body.page-school-detail .school-checklist-grid i[data-icon],
body.page-school-detail .school-intro-notes i[data-icon],
body.page-school-detail .school-major-summary i[data-icon],
body.page-school-detail .school-major-table i[data-icon],
body.page-school-detail .school-subject-grid i[data-icon] {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  border: 0 !important;
  background: linear-gradient(135deg, #1769e8, #3ba1ff) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(23, 105, 232, 0.18) !important;
}

body.page-school-detail .school-profile-tabs a span[data-icon]::before,
body.page-school-detail .school-panel-icon::before,
body.page-school-detail .school-news-icon::before,
body.page-school-detail .school-home-table i[data-icon]::before,
body.page-school-detail .school-detail-side-list i[data-icon]::before,
body.page-school-detail .school-side-status i[data-icon]::before,
body.page-school-detail .school-checklist-grid i[data-icon]::before,
body.page-school-detail .school-intro-notes i[data-icon]::before,
body.page-school-detail .school-major-summary i[data-icon]::before,
body.page-school-detail .school-major-table i[data-icon]::before,
body.page-school-detail .school-subject-grid i[data-icon]::before {
  content: "" !important;
  position: absolute !important;
  inset: 1px auto auto 1px !important;
  width: 44% !important;
  height: 44% !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.28) !important;
}

body.page-school-detail .school-profile-tabs a span[data-icon]::after,
body.page-school-detail .school-panel-icon[data-icon]::after,
body.page-school-detail .school-news-icon[data-icon]::after,
body.page-school-detail .school-home-table i[data-icon]::after,
body.page-school-detail .school-detail-side-list i[data-icon]::after,
body.page-school-detail .school-side-status i[data-icon]::after,
body.page-school-detail .school-checklist-grid i[data-icon]::after,
body.page-school-detail .school-intro-notes i[data-icon]::after,
body.page-school-detail .school-major-summary i[data-icon]::after,
body.page-school-detail .school-major-table i[data-icon]::after,
body.page-school-detail .school-subject-grid i[data-icon]::after {
  position: relative !important;
  z-index: 1 !important;
  background: #ffffff !important;
  transform: scale(1.22) !important;
  opacity: 1 !important;
}

body.page-school-detail .school-profile-tabs a span[data-icon] {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
}

body.page-school-detail .school-profile-tabs a span[data-icon]::after {
  width: 14px !important;
  height: 14px !important;
}

body.page-school-detail .school-panel-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
}

body.page-school-detail .school-panel-icon[data-icon]::after {
  width: 19px !important;
  height: 19px !important;
}

body.page-school-detail .school-news-icon,
body.page-school-detail .school-home-table i[data-icon],
body.page-school-detail .school-detail-side-list i[data-icon],
body.page-school-detail .school-side-status i[data-icon],
body.page-school-detail .school-major-table i[data-icon] {
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
}

body.page-school-detail .school-news-icon[data-icon]::after,
body.page-school-detail .school-home-table i[data-icon]::after,
body.page-school-detail .school-detail-side-list i[data-icon]::after,
body.page-school-detail .school-side-status i[data-icon]::after,
body.page-school-detail .school-major-table i[data-icon]::after {
  width: 15px !important;
  height: 15px !important;
}

body.page-school-detail .school-checklist-grid i[data-icon],
body.page-school-detail .school-intro-notes i[data-icon],
body.page-school-detail .school-major-summary i[data-icon],
body.page-school-detail .school-subject-grid i[data-icon] {
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
}

body.page-school-detail .school-checklist-grid i[data-icon]::after,
body.page-school-detail .school-intro-notes i[data-icon]::after,
body.page-school-detail .school-major-summary i[data-icon]::after,
body.page-school-detail .school-subject-grid i[data-icon]::after {
  width: 21px !important;
  height: 21px !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(1) span[data-icon],
body.page-school-detail .school-panel:nth-of-type(4n + 1) .school-panel-icon,
body.page-school-detail .school-home-table p:nth-child(4n + 1) i[data-icon],
body.page-school-detail .school-side-status p:nth-child(4n + 1) i[data-icon],
body.page-school-detail .school-checklist-grid article:nth-child(4n + 1) i[data-icon],
body.page-school-detail .school-news-block:nth-child(4n + 1) .school-news-icon {
  background: linear-gradient(135deg, #1769e8, #38a6ff) !important;
  box-shadow: 0 8px 18px rgba(23, 105, 232, 0.2) !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(2) span[data-icon],
body.page-school-detail .school-panel:nth-of-type(4n + 2) .school-panel-icon,
body.page-school-detail .school-home-table p:nth-child(4n + 2) i[data-icon],
body.page-school-detail .school-side-status p:nth-child(4n + 2) i[data-icon],
body.page-school-detail .school-checklist-grid article:nth-child(4n + 2) i[data-icon],
body.page-school-detail .school-news-block:nth-child(4n + 2) .school-news-icon {
  background: linear-gradient(135deg, #00a878, #35d39b) !important;
  box-shadow: 0 8px 18px rgba(0, 168, 120, 0.18) !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(3) span[data-icon],
body.page-school-detail .school-panel:nth-of-type(4n + 3) .school-panel-icon,
body.page-school-detail .school-home-table p:nth-child(4n + 3) i[data-icon],
body.page-school-detail .school-side-status p:nth-child(4n + 3) i[data-icon],
body.page-school-detail .school-checklist-grid article:nth-child(4n + 3) i[data-icon],
body.page-school-detail .school-news-block:nth-child(4n + 3) .school-news-icon {
  background: linear-gradient(135deg, #ff8a00, #ffbf47) !important;
  box-shadow: 0 8px 18px rgba(255, 138, 0, 0.18) !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(4) span[data-icon],
body.page-school-detail .school-panel:nth-of-type(4n) .school-panel-icon,
body.page-school-detail .school-home-table p:nth-child(4n) i[data-icon],
body.page-school-detail .school-side-status p:nth-child(4n) i[data-icon],
body.page-school-detail .school-checklist-grid article:nth-child(4n) i[data-icon],
body.page-school-detail .school-news-block:nth-child(4n) .school-news-icon {
  background: linear-gradient(135deg, #f43f7f, #ff7cad) !important;
  box-shadow: 0 8px 18px rgba(244, 63, 127, 0.18) !important;
}

body.page-school-detail .school-profile-tabs a:first-child,
body.page-school-detail .school-profile-tabs a:hover {
  color: #1269f3 !important;
}

/* v44: keep the colored badge container, mask only the glyph */
body.page-school-detail .school-profile-tabs a span.icon-slot,
body.page-school-detail .school-panel-icon.icon-slot,
body.page-school-detail .school-news-icon.icon-slot,
body.page-school-detail .school-home-table i.icon-slot,
body.page-school-detail .school-detail-side-list i.icon-slot,
body.page-school-detail .school-side-status i.icon-slot,
body.page-school-detail .school-checklist-grid i.icon-slot,
body.page-school-detail .school-intro-notes i.icon-slot,
body.page-school-detail .school-major-summary i.icon-slot,
body.page-school-detail .school-major-table i.icon-slot,
body.page-school-detail .school-subject-grid i.icon-slot {
  -webkit-mask: none !important;
  mask: none !important;
}

body.page-school-detail .school-profile-tabs a span.icon-slot::before,
body.page-school-detail .school-panel-icon.icon-slot::before,
body.page-school-detail .school-news-icon.icon-slot::before,
body.page-school-detail .school-home-table i.icon-slot::before,
body.page-school-detail .school-detail-side-list i.icon-slot::before,
body.page-school-detail .school-side-status i.icon-slot::before,
body.page-school-detail .school-checklist-grid i.icon-slot::before,
body.page-school-detail .school-intro-notes i.icon-slot::before,
body.page-school-detail .school-major-summary i.icon-slot::before,
body.page-school-detail .school-major-table i.icon-slot::before,
body.page-school-detail .school-subject-grid i.icon-slot::before {
  display: block !important;
}

body.page-school-detail .school-profile-tabs a span.icon-slot::after,
body.page-school-detail .school-panel-icon.icon-slot::after,
body.page-school-detail .school-news-icon.icon-slot::after,
body.page-school-detail .school-home-table i.icon-slot::after,
body.page-school-detail .school-detail-side-list i.icon-slot::after,
body.page-school-detail .school-side-status i.icon-slot::after,
body.page-school-detail .school-checklist-grid i.icon-slot::after,
body.page-school-detail .school-intro-notes i.icon-slot::after,
body.page-school-detail .school-major-summary i.icon-slot::after,
body.page-school-detail .school-major-table i.icon-slot::after,
body.page-school-detail .school-subject-grid i.icon-slot::after {
  content: "" !important;
  display: block !important;
  -webkit-mask: var(--icon-url) center / contain no-repeat !important;
  mask: var(--icon-url) center / contain no-repeat !important;
}

/* v45: align school-detail icons with homepage lightweight icon style */
body.page-school-detail .school-profile-tabs a span.icon-slot,
body.page-school-detail .school-panel-icon.icon-slot,
body.page-school-detail .school-news-icon.icon-slot,
body.page-school-detail .school-home-table i.icon-slot,
body.page-school-detail .school-detail-side-list i.icon-slot,
body.page-school-detail .school-side-status i.icon-slot,
body.page-school-detail .school-checklist-grid i.icon-slot,
body.page-school-detail .school-intro-notes i.icon-slot,
body.page-school-detail .school-major-summary i.icon-slot,
body.page-school-detail .school-major-table i.icon-slot,
body.page-school-detail .school-subject-grid i.icon-slot {
  border: 0 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  -webkit-mask: none !important;
  mask: none !important;
}

body.page-school-detail .school-profile-tabs a span.icon-slot::before,
body.page-school-detail .school-panel-icon.icon-slot::before,
body.page-school-detail .school-news-icon.icon-slot::before,
body.page-school-detail .school-home-table i.icon-slot::before,
body.page-school-detail .school-detail-side-list i.icon-slot::before,
body.page-school-detail .school-side-status i.icon-slot::before,
body.page-school-detail .school-checklist-grid i.icon-slot::before,
body.page-school-detail .school-intro-notes i.icon-slot::before,
body.page-school-detail .school-major-summary i.icon-slot::before,
body.page-school-detail .school-major-table i.icon-slot::before,
body.page-school-detail .school-subject-grid i.icon-slot::before {
  content: none !important;
  display: none !important;
}

body.page-school-detail .school-profile-tabs a span.icon-slot::after,
body.page-school-detail .school-panel-icon.icon-slot::after,
body.page-school-detail .school-news-icon.icon-slot::after,
body.page-school-detail .school-home-table i.icon-slot::after,
body.page-school-detail .school-detail-side-list i.icon-slot::after,
body.page-school-detail .school-side-status i.icon-slot::after,
body.page-school-detail .school-checklist-grid i.icon-slot::after,
body.page-school-detail .school-intro-notes i.icon-slot::after,
body.page-school-detail .school-major-summary i.icon-slot::after,
body.page-school-detail .school-major-table i.icon-slot::after,
body.page-school-detail .school-subject-grid i.icon-slot::after {
  background: currentColor !important;
  transform: none !important;
}

body.page-school-detail .school-profile-tabs a span.icon-slot {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
}

body.page-school-detail .school-profile-tabs a span.icon-slot::after {
  width: 15px !important;
  height: 15px !important;
}

body.page-school-detail .school-panel-icon.icon-slot {
  width: 32px !important;
  height: 32px !important;
  border-radius: 9px !important;
}

body.page-school-detail .school-panel-icon.icon-slot::after {
  width: 18px !important;
  height: 18px !important;
}

body.page-school-detail .school-home-table i.icon-slot,
body.page-school-detail .school-detail-side-list i.icon-slot,
body.page-school-detail .school-side-status i.icon-slot,
body.page-school-detail .school-news-icon.icon-slot,
body.page-school-detail .school-major-table i.icon-slot {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
}

body.page-school-detail .school-home-table i.icon-slot::after,
body.page-school-detail .school-detail-side-list i.icon-slot::after,
body.page-school-detail .school-side-status i.icon-slot::after,
body.page-school-detail .school-news-icon.icon-slot::after,
body.page-school-detail .school-major-table i.icon-slot::after {
  width: 15px !important;
  height: 15px !important;
}

body.page-school-detail .school-checklist-grid i.icon-slot,
body.page-school-detail .school-intro-notes i.icon-slot,
body.page-school-detail .school-major-summary i.icon-slot,
body.page-school-detail .school-subject-grid i.icon-slot {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
}

body.page-school-detail .school-checklist-grid i.icon-slot::after,
body.page-school-detail .school-intro-notes i.icon-slot::after,
body.page-school-detail .school-major-summary i.icon-slot::after,
body.page-school-detail .school-subject-grid i.icon-slot::after {
  width: 18px !important;
  height: 18px !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(1) span.icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n + 1) .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n + 1) i.icon-slot,
body.page-school-detail .school-side-status p:nth-child(4n + 1) i.icon-slot,
body.page-school-detail .school-checklist-grid article:nth-child(4n + 1) i.icon-slot,
body.page-school-detail .school-news-block:nth-child(4n + 1) .school-news-icon.icon-slot {
  color: #1269f3 !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(2) span.icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n + 2) .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n + 2) i.icon-slot,
body.page-school-detail .school-side-status p:nth-child(4n + 2) i.icon-slot,
body.page-school-detail .school-checklist-grid article:nth-child(4n + 2) i.icon-slot,
body.page-school-detail .school-news-block:nth-child(4n + 2) .school-news-icon.icon-slot {
  color: #059669 !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(3) span.icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n + 3) .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n + 3) i.icon-slot,
body.page-school-detail .school-side-status p:nth-child(4n + 3) i.icon-slot,
body.page-school-detail .school-checklist-grid article:nth-child(4n + 3) i.icon-slot,
body.page-school-detail .school-news-block:nth-child(4n + 3) .school-news-icon.icon-slot {
  color: #ea580c !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(4) span.icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n) .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n) i.icon-slot,
body.page-school-detail .school-side-status p:nth-child(4n) i.icon-slot,
body.page-school-detail .school-checklist-grid article:nth-child(4n) i.icon-slot,
body.page-school-detail .school-news-block:nth-child(4n) .school-news-icon.icon-slot {
  color: #9333ea !important;
}

/* v46: override earlier heavy grouped icon backgrounds */
body.page-school-detail .school-profile-tabs a span[data-icon].icon-slot,
body.page-school-detail .school-panel .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p i[data-icon].icon-slot,
body.page-school-detail .school-side-status p i[data-icon].icon-slot,
body.page-school-detail .school-checklist-grid article i[data-icon].icon-slot,
body.page-school-detail .school-news-block .school-news-icon.icon-slot,
body.page-school-detail .school-intro-notes i[data-icon].icon-slot,
body.page-school-detail .school-major-summary i[data-icon].icon-slot,
body.page-school-detail .school-major-table i[data-icon].icon-slot,
body.page-school-detail .school-subject-grid i[data-icon].icon-slot {
  background: #f8fafc !important;
  box-shadow: none !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(1) span[data-icon].icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n + 1) .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n + 1) i[data-icon].icon-slot,
body.page-school-detail .school-side-status p:nth-child(4n + 1) i[data-icon].icon-slot,
body.page-school-detail .school-checklist-grid article:nth-child(4n + 1) i[data-icon].icon-slot,
body.page-school-detail .school-news-block:nth-child(4n + 1) .school-news-icon.icon-slot {
  background: #f8fafc !important;
  color: #1269f3 !important;
  box-shadow: none !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(2) span[data-icon].icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n + 2) .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n + 2) i[data-icon].icon-slot,
body.page-school-detail .school-side-status p:nth-child(4n + 2) i[data-icon].icon-slot,
body.page-school-detail .school-checklist-grid article:nth-child(4n + 2) i[data-icon].icon-slot,
body.page-school-detail .school-news-block:nth-child(4n + 2) .school-news-icon.icon-slot {
  background: #f8fafc !important;
  color: #059669 !important;
  box-shadow: none !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(3) span[data-icon].icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n + 3) .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n + 3) i[data-icon].icon-slot,
body.page-school-detail .school-side-status p:nth-child(4n + 3) i[data-icon].icon-slot,
body.page-school-detail .school-checklist-grid article:nth-child(4n + 3) i[data-icon].icon-slot,
body.page-school-detail .school-news-block:nth-child(4n + 3) .school-news-icon.icon-slot {
  background: #f8fafc !important;
  color: #ea580c !important;
  box-shadow: none !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(4) span[data-icon].icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n) .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n) i[data-icon].icon-slot,
body.page-school-detail .school-side-status p:nth-child(4n) i[data-icon].icon-slot,
body.page-school-detail .school-checklist-grid article:nth-child(4n) i[data-icon].icon-slot,
body.page-school-detail .school-news-block:nth-child(4n) .school-news-icon.icon-slot {
  background: #f8fafc !important;
  color: #9333ea !important;
  box-shadow: none !important;
}

/* v48: fifth desktop tab uses homepage-style blue icon */
body.page-school-detail .school-profile-tabs a:nth-child(5) span[data-icon].icon-slot {
  background: #f8fafc !important;
  color: #1269f3 !important;
  box-shadow: none !important;
}

/* v49: school-specific subpage content */
body.page-school-detail .school-subpage-hero {
  margin-bottom: 16px;
}

body.page-school-detail .school-subpage-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 850;
}

body.page-school-detail .school-subpage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #edf3fa;
}

body.page-school-detail .school-subpage-meta span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #dfeaf8;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 750;
}

body.page-school-detail .school-subpage-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-school-detail .school-subpage-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 16px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid #edf3fa;
}

body.page-school-detail .school-subpage-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

body.page-school-detail .school-subpage-list a {
  min-width: 0;
  color: #172033;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.page-school-detail .school-subpage-list a:hover {
  color: #1269f3;
}

body.page-school-detail .school-subpage-list time {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
  white-space: nowrap;
}

body.page-school-detail .school-subpage-empty {
  padding: 18px;
  border: 1px dashed #d8e4f2;
  border-radius: 8px;
  background: #fbfdff;
}

body.page-school-detail .school-subpage-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #172033;
  font-size: 16px;
  font-weight: 850;
}

body.page-school-detail .school-subpage-empty p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

body.page-school-detail .school-subpage-empty-guided {
  border-style: solid;
  background: #ffffff;
}

body.page-school-detail .school-subpage-empty-guided > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

body.page-school-detail .school-subpage-empty-guided a {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  background: #f8fbff;
  text-decoration: none;
}

body.page-school-detail .school-subpage-empty-guided a span {
  color: #1269f3;
  font-size: 14px;
  font-weight: 850;
}

body.page-school-detail .school-subpage-empty-guided a em {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  font-style: normal;
}

/* v50: refined school intro module */
body.page-school-detail .school-intro-panel {
  overflow: hidden;
}

body.page-school-detail .school-intro-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: stretch;
}

body.page-school-detail .school-intro-story,
body.page-school-detail .school-intro-focus {
  min-width: 0;
  border: 1px solid #dce9f8;
  border-radius: 10px;
  background: #fff;
}

body.page-school-detail .school-intro-story {
  position: relative;
  padding: 22px 24px 20px;
  background:
    linear-gradient(90deg, rgba(18, 105, 243, .05), rgba(255, 255, 255, 0) 46%),
    #fff;
}

body.page-school-detail .school-intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #dceafe;
  border-radius: 999px;
  background: #f5f9ff;
  color: #1164d8;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
}

body.page-school-detail .school-intro-kicker i.icon-slot {
  width: 16px;
  height: 16px;
}

body.page-school-detail .school-intro-story h3,
body.page-school-detail .school-intro-focus h3 {
  margin: 14px 0 0;
  color: #12233d;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
}

body.page-school-detail .school-intro-story .school-intro-text {
  max-width: 680px;
  margin: 12px 0 18px;
  color: #40516a;
  font-size: 15px;
  line-height: 1.82;
}

body.page-school-detail .school-intro-story .school-intro-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 0;
}

body.page-school-detail .school-intro-story .school-intro-ledger div {
  padding: 12px 13px;
  border: 1px solid #e0ebf7;
  border-radius: 9px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

body.page-school-detail .school-intro-story .school-intro-ledger dt {
  margin: 0 0 6px;
  color: #75849a;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

body.page-school-detail .school-intro-story .school-intro-ledger dd {
  margin: 0;
  color: #14223a;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

body.page-school-detail .school-intro-focus {
  padding: 20px 20px 18px;
  background:
    linear-gradient(180deg, rgba(246, 250, 255, .9), rgba(255, 255, 255, .96));
}

body.page-school-detail .school-intro-focus h3 {
  margin-top: 0;
  font-size: 18px;
}

body.page-school-detail .school-intro-focus ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

body.page-school-detail .school-intro-focus li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid #dfeaf7;
  border-radius: 9px;
  background: #fff;
}

body.page-school-detail .school-intro-focus li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #edf5ff;
  color: #1266dc;
  font-size: 12px;
  font-weight: 900;
}

body.page-school-detail .school-intro-focus strong {
  display: block;
  margin-bottom: 4px;
  color: #14223a;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
}

body.page-school-detail .school-intro-focus em {
  display: block;
  color: #607188;
  font-size: 13px;
  line-height: 1.55;
  font-style: normal;
}

body.page-school-detail .school-intro-notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

body.page-school-detail .school-intro-notes p {
  align-items: center;
  min-height: 74px;
  padding: 14px 16px;
  border-color: #dce9f8;
  background: #fff;
}

body.page-school-detail .school-intro-notes span {
  color: #1164d8;
  font-weight: 900;
}

body.page-school-detail .school-intro-notes strong {
  color: #24344c;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  body.page-school-detail .school-intro-board {
    grid-template-columns: 1fr;
  }

  body.page-school-detail .school-intro-notes {
    grid-template-columns: 1fr;
  }
}

/* v52: remove non-specific generated imagery from the school header */
@media (min-width: 761px) {
  body.page-school-detail .school-detail-titleline {
    padding-right: 46px !important;
    background:
      radial-gradient(circle at 88% 18%, rgba(18, 105, 243, .08), transparent 28%),
      radial-gradient(circle at 74% 82%, rgba(18, 184, 134, .08), transparent 26%),
      linear-gradient(135deg, #ffffff 0%, #f7fbff 100%) !important;
  }

  body.page-school-detail .school-detail-heading {
    max-width: 720px !important;
  }
}

/* v53: unify school detail icons with the homepage lightweight icon system */
body.page-school-detail .school-profile-tabs a span.icon-slot,
body.page-school-detail .school-panel-icon.icon-slot,
body.page-school-detail .school-news-icon.icon-slot,
body.page-school-detail .school-material-head span.icon-slot,
body.page-school-detail .school-home-table i.icon-slot,
body.page-school-detail .school-detail-side-list i.icon-slot,
body.page-school-detail .school-side-status i.icon-slot,
body.page-school-detail .school-checklist-grid i.icon-slot,
body.page-school-detail .school-intro-kicker i.icon-slot,
body.page-school-detail .school-intro-notes i.icon-slot,
body.page-school-detail .school-major-summary i.icon-slot,
body.page-school-detail .school-major-table i.icon-slot,
body.page-school-detail .school-subject-grid i.icon-slot {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  color: #1269f3 !important;
  box-shadow: none !important;
  mask: none !important;
  -webkit-mask: none !important;
}

body.page-school-detail .school-profile-tabs a span.icon-slot::before,
body.page-school-detail .school-panel-icon.icon-slot::before,
body.page-school-detail .school-news-icon.icon-slot::before,
body.page-school-detail .school-material-head span.icon-slot::before,
body.page-school-detail .school-home-table i.icon-slot::before,
body.page-school-detail .school-detail-side-list i.icon-slot::before,
body.page-school-detail .school-side-status i.icon-slot::before,
body.page-school-detail .school-checklist-grid i.icon-slot::before,
body.page-school-detail .school-intro-kicker i.icon-slot::before,
body.page-school-detail .school-intro-notes i.icon-slot::before,
body.page-school-detail .school-major-summary i.icon-slot::before,
body.page-school-detail .school-major-table i.icon-slot::before,
body.page-school-detail .school-subject-grid i.icon-slot::before {
  content: none !important;
}

body.page-school-detail .school-profile-tabs a span.icon-slot::after,
body.page-school-detail .school-panel-icon.icon-slot::after,
body.page-school-detail .school-news-icon.icon-slot::after,
body.page-school-detail .school-material-head span.icon-slot::after,
body.page-school-detail .school-home-table i.icon-slot::after,
body.page-school-detail .school-detail-side-list i.icon-slot::after,
body.page-school-detail .school-side-status i.icon-slot::after,
body.page-school-detail .school-checklist-grid i.icon-slot::after,
body.page-school-detail .school-intro-kicker i.icon-slot::after,
body.page-school-detail .school-intro-notes i.icon-slot::after,
body.page-school-detail .school-major-summary i.icon-slot::after,
body.page-school-detail .school-major-table i.icon-slot::after,
body.page-school-detail .school-subject-grid i.icon-slot::after {
  content: "" !important;
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  background: currentColor !important;
  mask: var(--icon-url) center / contain no-repeat !important;
  -webkit-mask: var(--icon-url) center / contain no-repeat !important;
}

body.page-school-detail .school-profile-tabs a span.icon-slot,
body.page-school-detail .school-home-table i.icon-slot,
body.page-school-detail .school-side-status i.icon-slot,
body.page-school-detail .school-major-table i.icon-slot {
  width: 30px !important;
  height: 30px !important;
}

body.page-school-detail .school-panel-icon.icon-slot,
body.page-school-detail .school-news-icon.icon-slot,
body.page-school-detail .school-material-head span.icon-slot,
body.page-school-detail .school-checklist-grid i.icon-slot,
body.page-school-detail .school-intro-notes i.icon-slot,
body.page-school-detail .school-major-summary i.icon-slot {
  width: 34px !important;
  height: 34px !important;
}

body.page-school-detail .school-intro-kicker i.icon-slot {
  width: 18px !important;
  height: 18px !important;
  background: transparent !important;
}

body.page-school-detail .school-intro-kicker i.icon-slot::after {
  width: 15px !important;
  height: 15px !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(2) span.icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n + 2) .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n + 2) i.icon-slot,
body.page-school-detail .school-side-status p:nth-child(4n + 2) i.icon-slot,
body.page-school-detail .school-checklist-grid article:nth-child(4n + 2) i.icon-slot,
body.page-school-detail .school-news-block:nth-child(4n + 2) .school-news-icon.icon-slot {
  color: #059669 !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(3) span.icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n + 3) .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n + 3) i.icon-slot,
body.page-school-detail .school-side-status p:nth-child(4n + 3) i.icon-slot,
body.page-school-detail .school-checklist-grid article:nth-child(4n + 3) i.icon-slot,
body.page-school-detail .school-news-block:nth-child(4n + 3) .school-news-icon.icon-slot {
  color: #ea580c !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(4) span.icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n) .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n) i.icon-slot,
body.page-school-detail .school-side-status p:nth-child(4n) i.icon-slot,
body.page-school-detail .school-checklist-grid article:nth-child(4n) i.icon-slot,
body.page-school-detail .school-news-block:nth-child(4n) .school-news-icon.icon-slot {
  color: #9333ea !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(5) span.icon-slot,
body.page-school-detail .school-material-head span.icon-slot:nth-child(5n),
body.page-school-detail .school-intro-notes p:nth-child(2) i.icon-slot {
  color: #0ea5e9 !important;
}

/* v54: make the major directory section feel like a real directory workspace */
body.page-school-detail .school-major-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid #dce9f8;
  border-radius: 10px;
  background:
    radial-gradient(circle at 95% 10%, rgba(18, 105, 243, .08), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

body.page-school-detail .school-major-brief div {
  display: grid;
  gap: 4px;
}

body.page-school-detail .school-major-brief span,
body.page-school-detail .school-major-brief em {
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 750;
}

body.page-school-detail .school-major-brief strong {
  color: #1269f3;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 950;
}

body.page-school-detail .school-major-brief a,
body.page-school-detail .school-major-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #cfe0f7;
  border-radius: 8px;
  background: #fff;
  color: #1269f3;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

body.page-school-detail .school-major-brief a:hover,
body.page-school-detail .school-major-actions a:hover {
  border-color: #1269f3;
  background: #f4f9ff;
}

body.page-school-detail .school-major-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

body.page-school-detail .school-major-card-grid article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  border: 1px solid #e0ebf7;
  border-radius: 10px;
  background: #fff;
}

body.page-school-detail .school-major-card-grid strong {
  display: block;
  margin-bottom: 5px;
  color: #172033;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
}

body.page-school-detail .school-major-card-grid span {
  display: block;
  margin-bottom: 5px;
  color: #1269f3;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

body.page-school-detail .school-major-card-grid em {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  font-style: normal;
}

body.page-school-detail .school-major-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

body.page-school-detail .school-major-flow p {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid #e0ebf7;
  border-radius: 10px;
  background: #fbfdff;
}

body.page-school-detail .school-major-flow p > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #edf5ff;
  color: #1269f3;
  font-size: 12px;
  font-weight: 900;
}

body.page-school-detail .school-major-flow strong {
  display: block;
  margin-bottom: 4px;
  color: #172033;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
}

body.page-school-detail .school-major-flow em {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  font-style: normal;
}

body.page-school-detail .school-major-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 1180px) {
  body.page-school-detail .school-major-card-grid,
  body.page-school-detail .school-major-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* v55: content completeness, source entry, and quieter empty states */
body.page-school-detail .school-intro-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body.page-school-detail .school-intro-source {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin-top: 0;
  padding: 0 13px;
  border: 1px solid #cfe0f7;
  border-radius: 8px;
  background: #f7fbff;
  color: #1269f3;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

body.page-school-detail .school-intro-board {
  align-items: start;
}

body.page-school-detail .school-intro-story {
  align-self: start;
}

body.page-school-detail .school-intro-notes p {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
}

body.page-school-detail .school-intro-notes i.icon-slot {
  grid-row: span 2;
}

body.page-school-detail .school-intro-notes span,
body.page-school-detail .school-intro-notes strong {
  grid-column: 2;
}

body.page-school-detail .school-material-summary,
body.page-school-detail .school-major-source,
body.page-school-detail .school-side-progress {
  border: 1px solid #dce9f8;
  border-radius: 10px;
  background: #fbfdff;
}

body.page-school-detail .school-material-summary {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px 18px;
}

body.page-school-detail .school-material-summary div {
  display: grid;
  gap: 3px;
}

body.page-school-detail .school-material-summary strong {
  color: #1269f3;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 950;
}

body.page-school-detail .school-material-summary span,
body.page-school-detail .school-material-summary p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

body.page-school-detail .school-material-summary a,
body.page-school-detail .school-major-source > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #cfe0f7;
  border-radius: 8px;
  background: #fff;
  color: #1269f3;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

body.page-school-detail .school-material-card.is-empty {
  background: #fff;
}

body.page-school-detail .school-material-card.is-empty .school-material-head a {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

body.page-school-detail .school-material-empty {
  display: grid;
  gap: 7px;
  min-height: 70px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

body.page-school-detail .school-material-empty strong {
  color: #334155;
  font-size: 14px;
  font-weight: 900;
}

body.page-school-detail .school-material-empty span {
  display: block;
}

body.page-school-detail .school-major-source {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
  padding: 16px 18px;
}

body.page-school-detail .school-major-source.is-empty {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

body.page-school-detail .school-major-source strong {
  display: block;
  margin-bottom: 6px;
  color: #172033;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 950;
}

body.page-school-detail .school-major-source span {
  display: block;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

body.page-school-detail .school-major-source .school-detail-richtext {
  padding: 0;
  border: 0;
  background: transparent;
}

body.page-school-detail .school-major-source .school-detail-richtext ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-school-detail .school-major-source .school-detail-richtext li {
  margin: 0;
}

body.page-school-detail .school-major-source .school-detail-richtext a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d8e7f8;
  border-radius: 8px;
  background: #fff;
  color: #1269f3;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

body.page-school-detail .school-side-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 13px 14px;
}

body.page-school-detail .school-side-progress strong {
  grid-row: span 2;
  color: #1269f3;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

body.page-school-detail .school-side-progress span {
  color: #172033;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

body.page-school-detail .school-side-progress em {
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
  font-style: normal;
}

body.page-school-detail .school-side-status p.is-empty {
  background: #fbfdff;
}

body.page-school-detail .school-side-status p.is-empty strong {
  color: #64748b;
}

body.page-school-detail .school-side-status p.is-ready strong {
  color: #1269f3;
}

@media (max-width: 1180px) {
  body.page-school-detail .school-material-summary,
  body.page-school-detail .school-major-source,
  body.page-school-detail .school-major-source.is-empty {
    grid-template-columns: 1fr;
  }
}

/* v57: make missing school-specific content explicit and useful */
body.page-school-detail .school-subpage-audit-note {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #dce9f8;
  border-radius: 10px;
  background: #fbfdff;
}

body.page-school-detail .school-subpage-audit-note strong {
  color: #1269f3;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 950;
}

body.page-school-detail .school-subpage-audit-note span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

body.page-school-detail .school-subpage-table a {
  color: #172033;
  font-weight: 900;
  text-decoration: none;
}

body.page-school-detail .school-subpage-table a:hover {
  color: #1269f3;
}

body.page-school-detail .school-major-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  gap: 12px;
  margin-bottom: 14px;
}

body.page-school-detail .school-major-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.page-school-detail .school-major-facts article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 116px;
  padding: 14px;
  border: 1px solid #e0ebf7;
  border-radius: 10px;
  background: #fff;
}

body.page-school-detail .school-major-facts strong {
  display: block;
  margin-bottom: 5px;
  color: #172033;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 950;
}

body.page-school-detail .school-major-facts span {
  display: block;
  margin-bottom: 5px;
  color: #1269f3;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 950;
}

body.page-school-detail .school-major-facts em {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  font-style: normal;
}

body.page-school-detail .school-major-fill {
  min-height: 116px;
  padding: 16px 18px;
  border: 1px solid #d7eadf;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(23, 178, 106, .07), rgba(255, 255, 255, .98));
}

body.page-school-detail .school-major-fill h3 {
  margin: 0 0 8px;
  color: #173727;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 950;
}

body.page-school-detail .school-major-fill p {
  margin: 0;
  color: #48635a;
  font-size: 13px;
  line-height: 1.7;
}

body.page-school-detail .school-major-ledger td:nth-child(2),
body.page-school-detail .school-subpage-table td:nth-child(2) {
  color: #1269f3;
  font-weight: 900;
}

body.page-school-detail .school-major-table td {
  vertical-align: middle;
}

@media (max-width: 1180px) {
  body.page-school-detail .school-major-workbench,
  body.page-school-detail .school-subpage-audit-note {
    grid-template-columns: 1fr;
  }

  body.page-school-detail .school-major-facts {
    grid-template-columns: 1fr;
  }
}

/* v58: front-facing collection state and useful sidebar links */
body.page-school-detail .school-side-links {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

body.page-school-detail .school-side-links a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid #dce9f8;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
  text-decoration: none;
}

body.page-school-detail .school-side-links a:hover {
  border-color: #1269f3;
  color: #1269f3;
}

body.page-school-detail .school-side-links i.icon-slot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

body.page-school-detail .school-subpage-audit .school-panel-head {
  margin-bottom: 12px;
}

body.page-school-detail .school-subpage-audit-note {
  background:
    linear-gradient(135deg, rgba(18, 105, 243, .055), rgba(23, 178, 106, .045)),
    #fff;
}

body.page-school-detail .school-major-source .school-detail-richtext a::after,
body.page-school-detail .school-side-links a::after {
  content: "";
}

/* v63: calmer brand-blue palette, reduce blue area without changing identity */
body.page-school-detail {
  --school-ink: #172033;
  --school-muted: #5f6f86;
  --school-line: #e1e8f2;
  --school-soft: #f7f9fc;
  --school-blue: #2563eb;
  --school-blue-deep: #1d4ed8;
  --school-blue-soft: #f1f6ff;
  --school-slate-blue: #3f5f8f;
  --school-green: #16a36f;
  --school-green-soft: #f2fbf7;
  --school-warm: #b7791f;
  --school-warm-soft: #fff8ed;
}

body.page-school-detail .school-detail-hero,
body.page-school-detail .school-panel,
body.page-school-detail .school-side-panel {
  border-color: var(--school-line) !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(20, 33, 61, .045) !important;
}

body.page-school-detail .school-detail-hero {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .045), rgba(183, 121, 31, .04) 52%, rgba(255, 255, 255, .97)),
    #fff !important;
}

body.page-school-detail .school-detail-heading h1,
body.page-school-detail .school-panel-title h2,
body.page-school-detail .school-side-panel h3,
body.page-school-detail .school-intro-story h3,
body.page-school-detail .school-intro-focus h3,
body.page-school-detail .school-major-fill h3 {
  color: var(--school-ink) !important;
}

body.page-school-detail .school-detail-heading p,
body.page-school-detail .school-panel-head p,
body.page-school-detail .school-intro-text,
body.page-school-detail .school-material-summary p,
body.page-school-detail .school-major-source span,
body.page-school-detail .school-side-progress em {
  color: var(--school-muted) !important;
}

body.page-school-detail .school-detail-tags span,
body.page-school-detail .school-subpage-meta span {
  border-color: #d9e4f5 !important;
  background: #f7f9fc !important;
  color: var(--school-slate-blue) !important;
}

body.page-school-detail .school-profile-tabs {
  border-color: var(--school-line) !important;
  background: #fff !important;
}

body.page-school-detail .school-profile-tabs a {
  color: #25324a !important;
}

body.page-school-detail .school-profile-tabs a:hover {
  background: #f6f9ff !important;
  color: var(--school-blue-deep) !important;
}

body.page-school-detail .school-profile-tabs a span[data-icon].icon-slot,
body.page-school-detail .school-panel .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p i[data-icon].icon-slot,
body.page-school-detail .school-side-status p i[data-icon].icon-slot,
body.page-school-detail .school-checklist-grid article i[data-icon].icon-slot,
body.page-school-detail .school-news-block .school-news-icon.icon-slot,
body.page-school-detail .school-material-head span.icon-slot,
body.page-school-detail .school-intro-kicker i.icon-slot,
body.page-school-detail .school-intro-notes i[data-icon].icon-slot,
body.page-school-detail .school-major-table i[data-icon].icon-slot {
  background: var(--school-soft) !important;
  color: var(--school-slate-blue) !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(3) span.icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n + 3) .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n + 3) i.icon-slot,
body.page-school-detail .school-news-block:nth-child(4n + 3) .school-news-icon.icon-slot {
  color: var(--school-warm) !important;
  background: var(--school-warm-soft) !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(1) span.icon-slot,
body.page-school-detail .school-profile-tabs a:nth-child(2) span.icon-slot,
body.page-school-detail .school-profile-tabs a:nth-child(5) span.icon-slot,
body.page-school-detail .school-profile-tabs a:nth-child(1) span[data-icon].icon-slot,
body.page-school-detail .school-profile-tabs a:nth-child(2) span[data-icon].icon-slot,
body.page-school-detail .school-profile-tabs a:nth-child(5) span[data-icon].icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n + 1) .school-panel-icon.icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n + 2) .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n + 1) i.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n + 2) i.icon-slot,
body.page-school-detail .school-side-status p:nth-child(4n + 1) i.icon-slot,
body.page-school-detail .school-side-status p:nth-child(4n + 2) i.icon-slot,
body.page-school-detail .school-side-status p:nth-child(4n + 5) i.icon-slot,
body.page-school-detail .school-news-block:nth-child(4n + 1) .school-news-icon.icon-slot,
body.page-school-detail .school-news-block:nth-child(4n + 2) .school-news-icon.icon-slot {
  color: var(--school-slate-blue) !important;
  border-color: #dbe5f2 !important;
  background: #f6f8fb !important;
}

body.page-school-detail .school-profile-tabs a:nth-child(4) span.icon-slot,
body.page-school-detail .school-panel:nth-of-type(4n) .school-panel-icon.icon-slot,
body.page-school-detail .school-home-table p:nth-child(4n) i.icon-slot,
body.page-school-detail .school-news-block:nth-child(4n) .school-news-icon.icon-slot {
  color: #7c3aed !important;
  background: #f5f3ff !important;
}

body.page-school-detail .school-material-summary,
body.page-school-detail .school-major-source,
body.page-school-detail .school-side-progress,
body.page-school-detail .school-subpage-audit-note,
body.page-school-detail .school-intro-story,
body.page-school-detail .school-intro-focus,
body.page-school-detail .school-intro-notes p,
body.page-school-detail .school-major-facts article,
body.page-school-detail .school-subpage-empty,
body.page-school-detail .school-subpage-empty-guided a,
body.page-school-detail .school-side-links a {
  border-color: var(--school-line) !important;
  background: #fff !important;
}

body.page-school-detail .school-home-strategy,
body.page-school-detail .school-major-fill,
body.page-school-detail .school-subpage-audit-note {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .035), rgba(183, 121, 31, .045)),
    #fff !important;
}

body.page-school-detail .school-material-summary strong,
body.page-school-detail .school-side-progress strong,
body.page-school-detail .school-side-status p.is-ready strong,
body.page-school-detail .school-major-brief strong,
body.page-school-detail .school-major-facts span,
body.page-school-detail .school-major-ledger td:nth-child(2),
body.page-school-detail .school-subpage-table td:nth-child(2),
body.page-school-detail .school-subpage-audit-note strong {
  color: var(--school-blue-deep) !important;
}

body.page-school-detail .school-material-summary a,
body.page-school-detail .school-major-source > a,
body.page-school-detail .school-intro-source,
body.page-school-detail .school-major-source .school-detail-richtext a,
body.page-school-detail .school-major-brief a,
body.page-school-detail .school-major-actions a,
body.page-school-detail .school-side-links a:hover,
body.page-school-detail .school-subpage-list a:hover,
body.page-school-detail .school-subpage-table a:hover {
  border-color: #d7e5fb !important;
  background: #fff !important;
  color: var(--school-blue-deep) !important;
}

body.page-school-detail .school-material-card.is-ready,
body.page-school-detail .school-news-block,
body.page-school-detail .school-checklist-grid article,
body.page-school-detail .school-home-table p {
  border-color: #e5e9f0 !important;
  background: #fff !important;
}

body.page-school-detail .school-material-card.is-empty,
body.page-school-detail .school-side-status p.is-empty {
  background: #fafafa !important;
}

body.page-school-detail .school-material-empty strong,
body.page-school-detail .school-side-status p.is-empty strong {
  color: #7a5a1b !important;
}

/* v64: final layout alignment pass for school detail pages */
body.page-school-detail .school-detail-main {
  width: min(calc(100% - 48px), 1240px) !important;
  max-width: 1240px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 24px 0 42px !important;
  box-sizing: border-box !important;
}

body.page-school-detail .school-detail-main .breadcrumb,
body.page-school-detail .school-detail-hero,
body.page-school-detail .school-detail-layout {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
  box-sizing: border-box !important;
}

body.page-school-detail .school-detail-main .breadcrumb {
  margin-bottom: 16px !important;
  padding: 0 !important;
}

body.page-school-detail .school-detail-hero {
  gap: 18px !important;
  margin-bottom: 18px !important;
  padding: 22px !important;
}

body.page-school-detail .school-detail-titleline,
body.page-school-detail .school-detail-keyfacts,
body.page-school-detail .school-profile-tabs,
body.page-school-detail .school-panel,
body.page-school-detail .school-side-panel {
  box-sizing: border-box !important;
}

body.page-school-detail .school-detail-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 304px !important;
  gap: 18px !important;
  align-items: start !important;
}

body.page-school-detail .school-detail-content,
body.page-school-detail .school-detail-sidebar {
  min-width: 0 !important;
}

body.page-school-detail .school-profile-tabs {
  margin-bottom: 16px !important;
  padding: 7px !important;
}

body.page-school-detail .school-panel {
  margin: 0 0 16px !important;
  padding: 20px !important;
}

body.page-school-detail .school-panel-head {
  display: grid !important;
  grid-template-columns: minmax(0, auto) minmax(260px, 1fr) !important;
  gap: 18px !important;
  align-items: center !important;
  margin-bottom: 16px !important;
  padding-bottom: 14px !important;
}

body.page-school-detail .school-panel-head p {
  max-width: 560px !important;
  margin: 0 !important;
  justify-self: end !important;
  text-align: right !important;
}

body.page-school-detail .school-home-table,
body.page-school-detail .school-material-grid,
body.page-school-detail .school-news-grid,
body.page-school-detail .school-checklist-grid,
body.page-school-detail .school-checkpath-grid {
  min-width: 0 !important;
}

body.page-school-detail .school-detail-richtext,
body.page-school-detail .school-major-table-wrap {
  max-width: 100% !important;
  overflow-x: auto !important;
}

body.page-school-detail .school-detail-richtext table,
body.page-school-detail .school-major-table {
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
}

body.page-school-detail .school-detail-richtext img,
body.page-school-detail .school-detail-richtext video,
body.page-school-detail .school-detail-richtext iframe {
  max-width: 100% !important;
  height: auto !important;
}

body.page-school-detail .school-side-panel {
  padding: 18px !important;
}

@media (max-width: 1100px) {
  body.page-school-detail .school-detail-main {
    width: min(calc(100% - 32px), 900px) !important;
  }

  body.page-school-detail .school-detail-layout {
    grid-template-columns: 1fr !important;
  }

  body.page-school-detail .school-detail-sidebar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 760px) {
  body.page-school-detail .school-detail-main {
    width: min(calc(100% - 24px), 100%) !important;
    padding-top: 16px !important;
  }

  body.page-school-detail .school-detail-hero,
  body.page-school-detail .school-panel {
    padding: 16px !important;
  }

  body.page-school-detail .school-panel-head {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.page-school-detail .school-panel-head p {
    justify-self: stretch !important;
    text-align: left !important;
  }

  body.page-school-detail .school-detail-sidebar {
    grid-template-columns: 1fr !important;
  }
}
