/* Silo list pages: applying to med school (page-applying-to-medschool.php) and specialty
   training interviews (page-st-interviews.php). Standalone sheet (like cd-sales-page.css).
   Hand-edited plain CSS, no SCSS build. The medschool- prefix predates the ST page. */

.medschool-container {
  max-width: 1208px;
  margin: 0 auto;
  padding: 0 24px;
}

/* The theme gives every <section> margin-bottom: 120px; spacing on this page is set explicitly instead */
.medschool-hero,
.medschool-promos,
.medschool-listing,
.medschool-signup,
.medschool-faq { margin-bottom: 0; }

/* Hero: full width, image + left-weighted overlay (-12px cancels the body's 12px side padding so it runs edge to edge) */
.medschool-hero {
  position: relative;
  margin: 0;
  border-radius: 0;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
  padding: 96px 0 108px;
  border-radius: 24px;
}
.medschool-hero__overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(15, 23, 42, 0.15) 100%);
  z-index: 0;
}
.medschool-hero__content { position: relative; }
.medschool-hero__tag {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 15px;
  margin-bottom: 40px;
}
.medschool-hero__title {
  color: #fff;
  font-size: 48px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 0 40px;
  max-width: 660px;
}
.medschool-hero__desc {
  color: #fff;
  font-size: 19px;
  line-height: 30px;
  font-weight: 450;
  max-width: 660px;
  margin: 0;
}

/* Finder: blue panel with a type-ahead search */
.medschool-finder {
  margin-top: 62px;
  background: #1d4ed8;
  border-radius: 16px;
  padding: 22px 20px 20px;
}
.medschool-finder__title {
  color: #fff;
  font-size: 19px;
  line-height: 24px;
  font-weight: 700;
  margin: 0 0 14px;
}
.medschool-finder__field { position: relative; }
.medschool-finder__input,
.medschool-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #94a3b8;
  cursor: text;
}
.medschool-finder__input { border-color: #fff; }
.medschool-finder__input:focus-within,
.medschool-search:focus-within { border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15); }
.medschool-finder__input svg,
.medschool-search svg { flex-shrink: 0; }
.medschool-finder__input input,
.medschool-search input {
  flex-grow: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: "Instrument Sans", sans-serif;
  font-size: 15px;
  font-weight: 450;
  color: #0f172a;
}
.medschool-finder__input input::placeholder,
.medschool-search input::placeholder { color: #64748b; }
.medschool-finder__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
  max-height: 320px;
  overflow-y: auto;
}
.medschool-finder__results a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
}
.medschool-finder__results a:hover,
.medschool-finder__results a:focus { background: #f1f5f9; outline: 0; }
.medschool-finder__none { padding: 10px 12px; font-size: 14px; color: #64748b; }

/* Promo cards: straddle the bottom edge of the hero */
.medschool-promos {
  position: relative;
  z-index: 2;
  margin-top: -84px;
}
.medschool-promos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.medschool-promo {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.06);
  padding: 40px 32px 32px;
}
.medschool-promo__label {
  color: #1d4ed8;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.medschool-promo__title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #0f172a;
  margin: 0 0 12px;
}
.medschool-promo__desc {
  font-size: 17px;
  line-height: 27px;
  color: #334155;
  margin: 0 0 20px;
}
.medschool-promo__list { list-style: none; margin: 0; padding: 0; }
.medschool-promo__list li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 17px;
  line-height: 24px;
  color: #0f172a;
  margin-bottom: 8px;
}
.medschool-promo__list li:last-child { margin-bottom: 0; }
.medschool-promo__list svg { flex-shrink: 0; color: #1d4ed8; }

/* School listing */
/* Email capture under the promo cards. The box is the [cd_signup] shortcode from the course
   pages, whose styles are scoped under .cd-sales, so its wrapper carries that class too —
   these rules drop the sales-page page styling and size the box for this spot. */
.medschool-signup { padding: 72px 0 0; }
.cd-sales.medschool-signup__box { background: transparent; font-size: inherit; line-height: inherit; }
.cd-sales.medschool-signup__box .cd-signup { margin: 0; max-width: none; }
.cd-sales.medschool-signup__box .cd-signup__inner { padding: 32px 32px 30px; }
.cd-sales.medschool-signup__box .cd-signup__title { font-size: 24px; line-height: 30px; }
/* Heading and blurb stay a readable measure even though the card runs the full width */
.cd-sales.medschool-signup__box .cd-signup__text { margin: 0 auto 22px; max-width: 620px; font-size: 16px; line-height: 24px; }
/* School, email and button share one line; they wrap at 1023px and stack at 599px */
.cd-sales.medschool-signup__box .cd-signup__form { flex-wrap: nowrap; gap: 12px; }
.cd-sales.medschool-signup__box .cd-signup__school { flex: 0 1 320px; }
.cd-sales.medschool-signup__box .cd-signup__email { flex: 1 1 auto; }
.cd-sales.medschool-signup__box .cd-signup__school,
.cd-sales.medschool-signup__box .cd-signup__email,
.cd-sales.medschool-signup__box .cd-signup__btn { height: 48px; padding-top: 0; padding-bottom: 0; }
.cd-sales.medschool-signup__box .cd-signup__btn { flex: 0 0 auto; padding-left: 28px; padding-right: 28px; }
.cd-sales.medschool-signup__box .cd-signup.is-done .cd-signup__thanks { padding: 32px; font-size: 16px; line-height: 24px; }

.medschool-listing { padding: 100px 0 0; }
.medschool-listing__title {
  font-size: 32px;
  line-height: 38px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: #0f172a;
  margin: 0 0 30px;
}
.medschool-listing__intro {
  font-size: 17px;
  line-height: 27px;
  color: #334155;
  max-width: 570px;
  margin: 0 0 28px;
}
.medschool-toolbar { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.medschool-search { width: 100%; max-width: 320px; }
.medschool-count { font-size: 14px; line-height: 20px; color: #94a3b8; }

.medschool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.medschool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.medschool-card:hover { border-color: #cbd5e1; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08); }
.medschool-card__image {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: #f1f5f9;
  background-size: cover;
  background-position: center;
}
.medschool-card__body { flex-grow: 1; min-width: 0; }
.medschool-card__name {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #0f172a;
  margin: 0 0 8px;
}
.medschool-card__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.medschool-card__arrow { flex-shrink: 0; align-self: flex-start; margin: 10px 4px 0 0; color: #94a3b8; display: flex; }
.medschool-card:hover .medschool-card__arrow { color: #1d4ed8; }

.medschool-badge {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  padding: 1px 7px;
  border: 1px solid;
  border-radius: 999px;
  white-space: nowrap;
}
.medschool-badge--courses { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.medschool-badge--mentors { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.medschool-badge--muted   { color: #475569; background: #f8fafc; border-color: #e2e8f0; }

.medschool-empty { padding: 40px 0; margin: 0; text-align: center; font-size: 14px; color: #64748b; }

/* FAQ */
.medschool-faq { padding: 104px 0 96px; }
.medschool-faq__title {
  font-size: 32px;
  line-height: 38px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: #0f172a;
  margin: 0 0 24px;
}
.medschool-faq__item { border-top: 1px solid #e2e8f0; }
.medschool-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: #0f172a;
}
.medschool-faq__item summary::-webkit-details-marker { display: none; }
.medschool-faq__icon { flex-shrink: 0; color: #334155; }
.medschool-faq__item[open] .medschool-faq__icon-v { display: none; }
.medschool-faq__answer { padding: 0 48px 24px 0; }
.medschool-faq__answer p { font-size: 16px; line-height: 26px; color: #334155; margin: 0; }

/* Tablet */
@media screen and (max-width: 1023px) {
  .medschool-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-sales.medschool-signup__box .cd-signup__form { flex-wrap: wrap; }
  .cd-sales.medschool-signup__box .cd-signup__school { flex: 1 1 100%; }
  .cd-sales.medschool-signup__box .cd-signup__email { flex: 1 1 220px; }
}
@media screen and (max-width: 899px) {
  .medschool-hero__title { font-size: 40px; line-height: 44px; }
  .medschool-promos__grid { grid-template-columns: 1fr; }
}

/* Phone */
@media screen and (max-width: 599px) {
  .medschool-hero { padding: 56px 0 96px; }
  .medschool-container { padding: 0 16px; }
  .medschool-hero__tag { margin-bottom: 24px; }
  .medschool-hero__title { font-size: 32px; line-height: 36px; margin-bottom: 20px; }
  .medschool-hero__desc { font-size: 17px; line-height: 26px; }
  .medschool-signup { padding-top: 48px; }
  .cd-sales.medschool-signup__box .cd-signup__inner { padding: 26px 20px 24px; }
  .cd-sales.medschool-signup__box .cd-signup__btn { flex: 1 1 100%; }
  .medschool-finder { margin-top: 32px; }
  .medschool-promos { margin-top: -72px; }
  .medschool-promo { padding: 28px 20px 24px; }
  .medschool-listing, .medschool-faq { padding-top: 64px; }
  .medschool-listing__title, .medschool-faq__title { font-size: 26px; line-height: 32px; }
  .medschool-grid { grid-template-columns: 1fr; }
  .medschool-toolbar { flex-wrap: wrap; }
  .medschool-search { max-width: none; }
}

/* No specialty has a featured image: drop the thumbnail column rather than show a
   grid of empty squares. The card keeps its own padding. */
.medschool-grid--noimage .medschool-card { padding-left: 20px; }

/* Entry-level groups (ST page only). The heading hides with its cards when a search
   filters the group out, so the listing never shows an empty section. */
.medschool-group + .medschool-group { margin-top: 48px; }
.medschool-group__title {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
@media screen and (max-width: 599px) {
  .medschool-group + .medschool-group { margin-top: 36px; }
}

/* Cards without a badge row: no gap under the name. Arrow centred either way. */
.medschool-card__name:last-child { margin-bottom: 0; }
.medschool-card__arrow { align-self: center; margin-top: 0; }