/*
 * Scoala Premium — Commit #8.3.3
 * Production readability and school-brand refinement.
 * This file intentionally loads after the screenshot-fidelity layer.
 */

:root {
  --sp-readable-text: 16px;
  --sp-readable-small: 14px;
  --sp-readable-blue: #064b8f;
}

html { font-size: 16px; }
body {
  font-size: var(--sp-readable-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Wider, more comfortable content rail. */
.container,
.reference-home .container,
.sp-topbar .container,
.sp-site-header .container,
.sp-reference-footer .container {
  width: min(1240px, calc(100% - 48px));
}

/* Top bar */
.sp-topbar { min-height: 34px; }
.sp-topbar__inner { min-height: 34px; }
.sp-topbar__item,
.sp-audience-nav a { font-size: 12.5px; }
.sp-topbar__icon { font-size: 12px; }
.sp-topbar__contact { gap: 20px; }
.sp-audience-nav a { padding-inline: 15px; }

/* Official school identity in header. */
.sp-site-header__inner { height: 108px; }
.sp-branding { min-width: 335px; }
.sp-branding__link--default { gap: 13px; }
.sp-branding__school-seal {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #fff;
}
.sp-branding__copy strong {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: .01em;
  color: #073d78;
}
.sp-branding__copy small {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #b02a2a;
}
.sp-primary-nav .menu-link {
  padding-inline: 10px;
  font-size: 14px;
  font-weight: 700;
}
.sp-primary-nav .menu-item.is-active > .menu-link:after,
.sp-primary-nav .current-menu-item > .menu-link:after {
  left: 10px;
  right: 10px;
  bottom: 24px;
}
.sp-search-toggle { width: 42px; height: 42px; }

/* Hero */
.sp-hero-slider { height: 500px; min-height: 500px; }
.sp-hero-slide { background-position: center 46%; }
.sp-hero-slide__overlay {
  background: linear-gradient(90deg,
    rgba(2, 42, 82, .92) 0%,
    rgba(4, 61, 112, .72) 35%,
    rgba(4, 63, 116, .28) 61%,
    rgba(4, 63, 116, .05) 82%);
}
.sp-hero-slide__content { width: 540px; transform: none; }
.sp-hero-slide h1 {
  max-width: 560px;
  margin-bottom: 16px;
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1.06;
}
.sp-hero-slide p {
  max-width: 515px;
  margin-bottom: 26px;
  font-size: 17px;
  line-height: 1.55;
}
.sp-hero-btn {
  min-height: 44px;
  padding-inline: 22px;
  font-size: 12px;
  font-weight: 700;
}
.sp-hero-arrow { width: 38px; height: 38px; font-size: 25px; }
.sp-hero-dot { width: 8px; height: 8px; }

/* Quick links */
.reference-quick {
  width: min(1190px, calc(100% - 54px)) !important;
  margin-top: -58px;
  padding: 23px 10px 20px;
}
.reference-quick__item { min-height: 108px; padding: 5px 15px; }
.reference-quick__icon { width: 36px; height: 36px; margin-bottom: 9px; }
.reference-quick strong { font-size: 13px; }
.reference-quick small { max-width: 145px; font-size: 11px; line-height: 1.4; }

/* Homepage information deck */
.reference-feed { gap: 16px; padding: 24px 0 15px; }
.reference-panel { min-height: 390px; padding: 18px 18px 15px; }
.reference-panel > header { margin-bottom: 16px; }
.reference-panel h2,
.reference-heading h2,
.reference-partners h2 { font-size: 15px; }
.reference-panel header a,
.reference-heading a,
.reference-more { font-size: 11px; }

.reference-story {
  grid-template-columns: 92px 1fr;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
}
.reference-story img,
.reference-story__placeholder {
  width: 92px;
  height: 70px;
}
.reference-story h3,
.reference-date-item h3,
.reference-event-item h3 {
  margin-bottom: 4px;
  font-size: 12.5px;
  line-height: 1.35;
}
.reference-story time,
.reference-event-item time {
  margin-bottom: 4px;
  font-size: 10.5px;
}
.reference-story p,
.reference-date-item p,
.reference-event-location {
  font-size: 11px !important;
  line-height: 1.45 !important;
}

.reference-date-item {
  grid-template-columns: 48px 1fr;
  gap: 12px;
  min-height: 82px;
  margin-bottom: 12px;
  padding-bottom: 12px;
}
.reference-date,
.reference-date--event { width: 48px; }
.reference-date b { font-size: 18px; padding-top: 6px; }
.reference-date span { font-size: 8.5px; padding: 6px 2px; }

.reference-event-item {
  grid-template-columns: 84px 48px minmax(0, 1fr);
  gap: 10px;
  min-height: 82px;
  margin-bottom: 12px;
  padding-bottom: 12px;
}
.reference-event-item__image { width: 84px; height: 66px; }

/* Section headings and laboratory cards */
.reference-section { padding: 14px 0 18px; }
.reference-heading { margin-bottom: 14px; }
.reference-labs { gap: 14px; }
.reference-lab { flex-basis: calc((100% - 56px) / 5); }
.reference-lab__visual { height: 118px; }
.reference-lab__visual img { width: 100%; height: 100%; object-fit: cover; }
.reference-lab > div:last-child { min-height: 100px; padding: 12px; }
.reference-lab h3 { font-size: 12px; }
.reference-lab p { font-size: 10.5px; line-height: 1.45; }

/* Statistics */
.reference-stats {
  width: min(1190px, calc(100% - 54px));
  margin: 18px auto 17px;
}
.reference-stats__grid { min-height: 88px; padding: 14px 0; }
.reference-stats strong { font-size: 27px; }
.reference-stats small { font-size: 11.5px; }
.reference-stat-icon,
.reference-stat-icon svg { width: 38px; height: 38px !important; }

/* Gallery */
.reference-gallery { gap: 7px; }
.reference-gallery a,
.reference-gallery__placeholder { height: 108px; }
.reference-gallery a img { width: 100%; height: 100%; object-fit: cover; }

/* Partners */
.reference-partners { padding: 14px 0 20px; }
.reference-partners h2 { margin-bottom: 11px; }
.reference-partners__row { min-height: 62px; }
.reference-partners__row > span { font-size: 13px; }

/* Inner pages */
.sp-page-hero__eyebrow { font-size: 13px; }
.sp-page-hero p { font-size: 17px; }
.sp-content-page .entry-content p,
.sp-content-page .entry-content li { font-size: 17px; }
.sp-content-page .sp-lead { font-size: 20px; }
.sp-archive-card__meta { font-size: 13px; }
.sp-archive-card h2,
.sp-archive-card h3 { font-size: 20px; }
.sp-archive-card p { font-size: 15.5px; }
.sp-archive-card__link { font-size: 13px; }

/* Footer */
.sp-reference-footer { font-size: 14px; }
.sp-reference-footer .footer-top { padding: 34px 0 28px; }
.sp-reference-footer .footer-title { font-size: 13px; margin-bottom: 12px; }
.sp-reference-footer .footer-mini-title { font-size: 12px; }
.sp-reference-footer p,
.sp-reference-footer li { font-size: 12.5px; line-height: 1.6; }
.sp-reference-footer .footer-social a { width: 28px; height: 28px; font-size: 14px; }
.sp-reference-footer .footer-map iframe { height: 145px; }
.sp-reference-footer .footer-bottom .container { min-height: 42px; }
.sp-reference-footer .footer-copyright,
.sp-reference-footer .footer-legal a { font-size: 11px; }

@media (max-width: 1180px) and (min-width: 901px) {
  .sp-branding { min-width: 275px; }
  .sp-branding__school-seal { width: 62px; height: 62px; flex-basis: 62px; }
  .sp-branding__copy strong { font-size: 17px; }
  .sp-primary-nav .menu-link { font-size: 14px; padding-inline: 7px; }
}

@media (max-width: 900px) {
  .container,
  .reference-home .container,
  .sp-topbar .container,
  .sp-site-header .container,
  .sp-reference-footer .container { width: min(94%, 1240px); }
  .sp-site-header__inner { height: 84px; }
  .sp-branding__school-seal { width: 58px; height: 58px; flex-basis: 58px; }
  .sp-branding__copy strong { font-size: 17px; }
  .sp-hero-slider { height: 450px; min-height: 450px; }
  .reference-lab { flex-basis: calc((100% - 28px) / 3); }
}

@media (max-width: 760px) {
  .sp-hero-slide h1 { font-size: 38px; }
  .sp-hero-slide p { font-size: 15px; }
  .reference-feed { grid-template-columns: 1fr; }
  .reference-panel { min-height: 0; }
  .sp-reference-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container,
  .reference-home .container,
  .sp-topbar .container,
  .sp-site-header .container,
  .sp-reference-footer .container { width: calc(100% - 28px); }
  .sp-branding__school-seal { width: 52px; height: 52px; flex-basis: 52px; }
  .sp-branding__copy strong { font-size: 15px; }
  .sp-branding__copy small { display: block; font-size: 9px; }
  .sp-hero-slider { height: 420px; min-height: 420px; }
  .sp-hero-slide h1 { font-size: 32px; }
  .reference-quick { width: calc(100% - 28px) !important; }
  .reference-event-item { grid-template-columns: 74px 42px minmax(0, 1fr); }
  .reference-event-item__image { width: 74px; height: 58px; }
  .reference-date,
  .reference-date--event { width: 42px; }
  .reference-lab { flex-basis: 84%; }
  .reference-gallery { grid-template-columns: repeat(2, 1fr); }
  .sp-reference-footer .footer-grid { grid-template-columns: 1fr; }
}
