/* Home-only section boundaries. Component layouts and inner spacing stay intact. */
#main {
  --home-section-space: 48px;
  --home-section-divider: 1px solid var(--line);
}

#main > .home-hero ~ :is(
  .admission-home-feature,
  .sr-home,
  .profile-section,
  .home-lectures,
  .home-columns,
  .home-videos,
  .home-resources,
  .home-exploration,
  .home-inquiry,
  .home-contact
) {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: var(--home-section-space);
  padding-bottom: var(--home-section-space);
  border-top: var(--home-section-divider);
  border-bottom: 0;
}

/* The services band already owns the boundary above the admission feature. */
#main > .services-band + .admission-home-feature {
  border-top: 0;
}

/* This margin sits outside the inquiry panel, on top of its wrapper spacing. */
#main > .home-hero ~ .home-inquiry > .inquiry-section {
  margin-bottom: 0;
}

/* One breakpoint also covers the former 640–720px spacing mismatch. */
@media (max-width: 720px) {
  #main {
    --home-section-space: 32px;
  }
}
