/* Gradometer homepage only. Built from assets-src/homepage by gradometer_fix.py. */
.home-page a:focus-visible {
  outline: 3px solid #1D4ED8;
  outline-offset: 3px;
}
.home-page .home-hero { padding: 64px 0 50px; }
.home-page .home-hero h1 {
  max-width: 1030px;
  margin: 0 auto 28px;
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.home-page .search-shell { max-width: 700px; }
.home-page .search-box {
  min-height: 62px;
  gap: 13px;
  padding: 4px 18px;
  border: 1.5px solid #C4D1EC;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(13, 37, 85, .08);
}
.home-page .search-box:focus-within {
  border-color: #1D4ED8;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .16);
}
.home-page .search-icon { color: #1D4ED8; }
/* The site's generic text-input rule was painting a second border here. */
.home-page .search-box input[type="text"] {
  width: 100%;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #08101F;
  font-size: 1rem;
}
.home-page .search-box input[type="text"]:focus { box-shadow: none; }
.home-page .search-box input::placeholder { color: #47577A; opacity: 1; }
.home-page .home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 30px auto 0;
  text-align: left;
}
.home-page .home-stat {
  display: flex;
  flex-direction: column;
  min-height: 140px;
  padding: 18px 20px;
  border: 1px solid #1D4ED8;
  border-radius: 17px;
  background: #1D4ED8;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(29, 78, 216, .12);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.home-page .home-stat:hover {
  transform: translateY(-3px);
  background: #1E40AF;
  box-shadow: 0 12px 24px rgba(29, 78, 216, .20);
}
.home-page .home-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.home-page .home-stat-number { font-size: 1.9rem; line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.home-page .home-stat-arrow {
  display: grid;
  width: 30px; height: 30px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}
.home-page .home-stat-label { margin-top: 14px; color: #fff; font-size: .97rem; font-weight: 750; line-height: 1.25; }
.home-page .home-stat-note { margin-top: 3px; color: #fff; font-size: .79rem; line-height: 1.35; }
.home-page .home-intro {
  max-width: 790px;
  margin: 26px auto 0;
  color: #2C3C5A;
  font-size: 1rem;
  line-height: 1.75;
}
.home-page .home-section { padding: 62px 0; }
.home-page .home-tools-section { background: #E2E9F7; }
.home-page .home-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 25px;
}
.home-page .home-kicker {
  display: inline-block;
  margin-bottom: 9px;
  color: #1D4ED8;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
}
.home-page .home-section-heading h2,
.home-page .home-guide h2,
.home-page .home-scholarships h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.7vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}
.home-page .home-section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: #2C3C5A;
  font-size: .96rem;
}
.home-page .home-section-link,
.home-page .home-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #1D4ED8;
  font-size: .91rem;
  font-weight: 750;
  text-decoration: none;
}
.home-page .home-section-link:hover,
.home-page .home-guide-link:hover { color: #1E40AF; text-decoration: underline; text-underline-offset: 4px; }
.home-page .home-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-page .home-tool-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 218px;
  padding: 22px;
  border: 1px solid #C4D1EC;
  border-radius: 17px;
  background: #fff;
  color: #08101F;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(13, 37, 85, .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-page .home-tool-card:hover {
  transform: translateY(-4px);
  border-color: #1D4ED8;
  box-shadow: 0 12px 26px rgba(13, 37, 85, .12);
}
.home-page .home-tool-icon {
  display: grid;
  width: 46px; height: 46px;
  flex: 0 0 auto;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 13px;
  background: #1D4ED8;
  color: #fff;
}
.home-page .home-tool-icon svg { display: block; }
.home-page .home-tool-card h3 { margin: 0 0 7px; color: #08101F; font-size: 1rem; font-weight: 750; line-height: 1.3; }
.home-page .home-tool-card p { margin: 0 0 18px; color: #2C3C5A; font-size: .9rem; line-height: 1.55; }
.home-page .home-tool-action { display: flex; align-items: center; gap: 7px; margin-top: auto; color: #1D4ED8; font-size: .82rem; font-weight: 750; }
.home-page .home-universities-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-page .home-university-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  min-height: 114px;
  padding: 18px 19px;
  border: 1px solid #C4D1EC;
  border-radius: 16px;
  background: #fff;
  color: #08101F;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(13, 37, 85, .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-page .home-university-card:hover {
  transform: translateY(-3px);
  border-color: #1D4ED8;
  box-shadow: 0 10px 24px rgba(13, 37, 85, .1);
}
.home-page .home-university-badge {
  display: grid;
  width: 52px; height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 14px;
  background: #DFE7FB;
  color: #1E40AF;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}
.home-page .home-university-copy { flex: 1 1 auto; min-width: 0; }
.home-page .home-university-copy h3 { margin: 0 0 6px; color: #08101F; font-size: .98rem; font-weight: 750; line-height: 1.35; }
.home-page .home-university-meta { display: block; color: #2C3C5A; font-size: .82rem; line-height: 1.45; }
.home-page .home-university-arrow { flex: 0 0 auto; color: #1D4ED8; font-size: 1.1rem; font-weight: 700; }
.home-page .home-guide-section { padding-top: 0; }
.home-page .home-guide {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(0, 1.35fr);
  gap: 60px;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid #C4D1EC;
  border-radius: 22px;
  background: #DFE7FB;
}
.home-page .home-guide-heading p { max-width: 320px; margin: 12px 0 20px; color: #2C3C5A; font-size: .95rem; }
.home-page .home-guide-items { display: grid; gap: 18px; }
.home-page .home-guide-items article + article { padding-top: 18px; border-top: 1px solid #B7C7E8; }
.home-page .home-guide-items h3 { margin: 0 0 5px; color: #08101F; font-size: 1rem; line-height: 1.35; }
.home-page .home-guide-items p { max-width: 65ch; margin: 0; color: #2C3C5A; font-size: .91rem; line-height: 1.7; }
.home-page .home-scholarships-section { padding-top: 0; }
.home-page .home-scholarships {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  align-items: center;
  gap: 50px;
  padding: clamp(26px, 4vw, 46px);
  border-radius: 22px;
  background: #1D4ED8;
  color: #fff;
}
.home-page .home-scholarships .home-kicker { color: #fff; }
.home-page .home-scholarships h2 { max-width: 460px; color: #fff; }
.home-page .home-scholarships-heading p { max-width: 470px; margin: 14px 0 23px; color: #fff; font-size: .95rem; line-height: 1.7; }
.home-page .home-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid #fff;
  border-radius: 11px;
  background: #fff;
  color: #1E40AF;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}
.home-page .home-primary-link:hover { background: #DFE7FB; border-color: #DFE7FB; }
.home-page .home-scholarships-list { display: grid; gap: 9px; }
.home-page .home-scholarship-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #fff;
  color: #08101F;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.home-page .home-scholarship-card:hover { transform: translateX(3px); background: #EDF1FA; }
.home-page .home-scholarship-name { display: block; color: #08101F; font-size: .89rem; font-weight: 750; line-height: 1.4; }
.home-page .home-scholarship-meta { display: block; margin-top: 3px; color: #2C3C5A; font-size: .78rem; line-height: 1.4; }
.home-page .home-scholarship-arrow { flex: 0 0 auto; color: #1D4ED8; font-weight: 750; }
.home-page .home-scholarships a:focus-visible { outline-color: #fff; }
@media (max-width: 860px) {
  .home-page .home-hero { padding: 48px 0 42px; }
  .home-page .home-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .home-guide { grid-template-columns: 1fr; gap: 25px; }
  .home-page .home-scholarships { gap: 28px; }
}
@media (max-width: 620px) {
  .home-page .home-hero { padding: 40px 0 38px; }
  .home-page .home-hero h1 { margin-bottom: 22px; font-size: clamp(1.95rem, 8vw, 2.5rem); }
  .home-page .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
  .home-page .home-stat { min-height: 130px; padding: 16px; }
  .home-page .home-stat-number { font-size: 1.7rem; }
  .home-page .home-intro { margin-top: 21px; font-size: .94rem; }
  .home-page .home-section { padding: 45px 0; }
  .home-page .home-guide-section, .home-page .home-scholarships-section { padding-top: 0; }
  .home-page .home-section-heading { display: block; margin-bottom: 20px; }
  .home-page .home-section-link { margin-top: 12px; }
  .home-page .home-tools-grid, .home-page .home-universities-grid { grid-template-columns: 1fr; gap: 11px; }
  .home-page .home-tool-card { min-height: 0; padding: 19px; }
  .home-page .home-tool-icon { margin-bottom: 13px; }
  .home-page .home-tool-card p { margin-bottom: 14px; }
  .home-page .home-university-card { min-height: 96px; padding: 15px; }
  .home-page .home-scholarships { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .home-stat, .home-page .home-tool-card,
  .home-page .home-university-card, .home-page .home-scholarship-card { transition: none; }
  .home-page .home-stat:hover, .home-page .home-tool-card:hover,
  .home-page .home-university-card:hover, .home-page .home-scholarship-card:hover { transform: none; }
}
