/* Higher Ed Apply, phones only (adapted from the Global Test Prep Solutions site): loaded with
   media="(max-width: 767px)". Larger screens never apply this file. */
:root {
  --section-y: 32px;
  --header-h: 56px;
  --fs-display: 2.125rem;
  --fs-h2: 1.625rem;
  --fs-h3: 1.0625rem;
  --fs-body: 1rem;
  --fs-lead: 1.0625rem;
  --lh-body: 1.5;
}

/* One rhythm between sections, everywhere. */
main > section.section, #faq { padding-top: 28px !important; padding-bottom: 28px !important; }

/* Same grounds as desktop (founder, 8 Nov 2026): the main stylesheet sets every band; the one thin line,
   between the founder and In the media, stays as a reading aid. */
.section-head { margin-bottom: 20px; }
h2 + .lead, h2 + p { margin-top: 10px; }

/* Header: the logo centered, Menu on the right with its name under the icon (as on the sister
   site). The empty left column keeps the logo centered. */
.site-header__inner { display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; gap: 8px; }
.menu-button {
  flex-direction: column; justify-content: center; gap: 2px; width: 60px; min-height: 48px; margin: 0; padding: 2px 0;
  font: 600 0.75rem/1.1 var(--font-body);
}
.menu-button svg { width: 20px; height: 20px; }
.site-header__logo { grid-column: 2; grid-row: 1; justify-self: center; }
.site-header__logo img { height: 30px; }
.menu-button { grid-column: 3; grid-row: 1; }
/* Sign in on the left, Menu on the right, each with its name under its icon (as on Global Test Prep Solutions). */
.signin--compact {
  grid-column: 1; grid-row: 1; flex-direction: column; justify-content: center; gap: 2px; width: 60px; min-height: 48px;
  margin: 0; padding: 2px 0; font: 600 0.75rem/1.1 var(--font-body);
}
.signin--compact .signin__icon { width: 20px; height: 20px; }
.m-top .signin--compact { background: var(--color-white); }
.menu-button__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

/* Top of the page: header and hero are one. The large logo sits between the two buttons;
   once it scrolls away, the solid bar and small logo take over, so one logo shows at a time. */
.site-header, .site-header__logo { transition: background-color .15s, border-color .15s, opacity .15s; }
.m-top .site-header { background: transparent; border-bottom-color: transparent; }
.m-top .site-header:has(.site-nav.is-open) { background: var(--color-white); }
.m-top .site-header__logo { opacity: 0; visibility: hidden; }
.m-top .menu-button { background: var(--color-white); }
.m-ready .hero { margin-top: calc(-1 * var(--header-h)); padding-top: 8px !important; }

/* Read more, and sections that open on tap. */
.m-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.m-fold { display: none !important; }
.m-more {
  display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; min-height: 44px; margin-top: 2px; padding: 0;
  background: none; border: 0; font: 600 0.9375rem/1.2 var(--font-body); color: var(--color-teal); cursor: pointer;
}
.m-more::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.m-more[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.m-more:focus-visible, .m-toggle:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; }

/* Hero: centered, logo first, button on the first screen. */
.hero { padding-top: 20px !important; text-align: center; }
.hero__grid { gap: 14px; justify-items: center; }
.hero__brand { display: flex; justify-content: center; width: 100%; }
.hero__brand > img { width: min(52vw, 210px); margin: 0 auto; }
.hero .eyebrow { font-size: 0.6875rem; line-height: 1.5; letter-spacing: .06em; margin-bottom: 10px; }
.hero .eyebrow::after { margin-left: auto; margin-right: auto; }
.hero__lead { margin: 10px 0 16px; width: 100%; max-width: none; font-size: 1rem; text-align: left; }
.hero .btn-row { display: grid; gap: 8px; width: 100%; }
.hero .btn-row .btn { width: 100%; justify-content: center; }
.admits { margin-top: 22px; }
.admits__title { max-width: none !important; width: 100%; padding: 0 !important; margin: 0 0 10px; text-wrap: balance; }
.admits__toggle { position: static; display: block; margin: 8px auto 0; }

/* Mobile bar appears after the hero and never leaves dead space. */
.mobile-bar.m-bar-off { display: none; }
body:has(.mobile-bar.m-bar-off) { padding-bottom: 0; }
body:has(.mobile-bar[hidden]) { padding-bottom: 0; }

/* Where students go: four colored groups, every destination visible. Same colors as desktop. */

/* the plan section */
.steps { margin-top: 16px; }
.step { padding-bottom: 12px; }
.step h3 { font-size: 1rem; }
.step p { font-size: 0.875rem; margin-top: 2px; }

/* The plan runs down the page on phones: dot on the left, the stop and its details beside it. */
.timeline { margin: 16px 0 20px; }
.timeline__bar {
  left: 9px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto;
  background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px);
}
.timeline__fill { transform-origin: top; }
.js .timeline__fill { transform: scaleY(var(--p, 0)); }
.timeline__stops { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.timeline__stops > li { grid-template-columns: 21px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 12px; }
.timeline__dot { margin: 0; grid-row: 1 / span 2; }
.timeline__milestone { grid-column: 2; font-size: 1.0625rem; }
.timeline__details { grid-column: 2; margin-top: 2px; }

/* How we help, postgraduate and concierge */
.service-grid { margin-top: 16px; gap: 10px; }
.service-tile { padding: 14px; }
.service-tile .icon { width: 26px; height: 26px; }
.postgrad__tiles { margin-top: 16px; gap: 10px; }
.postgrad__tiles li { padding: 14px; }
.postgrad__help, .postgrad__foot { margin-top: 18px; }
.postgrad__foot .btn, .concierge__text .btn { width: 100%; justify-content: center; }
.concierge__grid { gap: 20px; }

/* In the media */
.media__grid { margin-top: 14px; gap: 14px; }
.media__interview { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; }
.media__interview img { width: 96px; height: 150px; }
.media__title { font-size: 1.0625rem; }
.media__quote { padding: 16px; }
.media__quote blockquote p:first-child { font-size: 1.125rem; }

/* Progress reports */
.report__body { padding: 14px; }
.report__head { padding: 12px 14px; }

/* Founder: photo beside the name, then the story. */
.founder { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 14px; align-items: center; }
.founder__media, .founder__text { display: contents; }
.founder__photo { grid-column: 1; grid-row: 1 / span 2; width: 104px; aspect-ratio: 4 / 5; margin: 0; }
#founder-title { grid-column: 2; grid-row: 1; align-self: end; }
.founder__role { grid-column: 2; grid-row: 2; align-self: start; font-size: 0.8125rem; line-height: 1.4; margin-top: 4px; }
.founder .measure { grid-column: 1 / -1; grid-row: 3; margin-top: 14px; }
.founder .record { grid-column: 1 / -1; grid-row: 4; margin-top: 14px; padding-top: 14px; }
.record__figures { gap: 10px; }
.record__figure { font-size: 2rem; }
.record__label { font-size: 0.75rem; }
.founder__awards { grid-column: 1 / -1; grid-row: 5; margin-top: 14px; padding-top: 14px; }
.founder__awards .highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.founder__awards .highlights li { padding: 0; font-size: 0.75rem; line-height: 1.35; display: flex; flex-direction: column; gap: 6px; }
.founder__awards .highlights li::before { display: none; }
.credentials { grid-column: 1 / -1; grid-row: 6; margin-top: 10px; gap: 0; }
.founder__press { grid-column: 1 / -1; grid-row: 7; margin-top: 24px; }
.credentials__group { border-top: 1px solid var(--line); }

/* Tap-to-open headings: founder credentials and FAQ topics. */
.m-toggle {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-height: 52px; padding: 6px 0;
  background: none; border: 0; text-align: left; color: var(--text-heading); font: inherit; cursor: pointer;
}
.m-toggle::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 0 auto; border-right: 2px solid var(--color-teal); border-bottom: 2px solid var(--color-teal); transform: translateY(-2px) rotate(45deg); }
.m-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.credentials__title { margin: 0; }
.credentials .highlights { padding-bottom: 12px; }
.credentials .highlights li { font-size: 0.9375rem; }

/* FAQs */
.faq__groups { gap: 8px; }
.faq__group-title { margin: 0; }
.faq__list { gap: 8px; margin-top: 4px; padding-bottom: 8px; }
#faq summary { min-height: 56px; padding-top: 8px; padding-bottom: 8px; font-size: 0.9375rem; }
#faq .faq__icon { width: 32px; height: 32px; }

/* Booking form */
.booking { gap: 16px; }
.booking__contact { margin-top: 12px; }
.booking__contact a { font-size: 0.9375rem; }
.booking__panel { padding: 16px; }
.form__grid { gap: 14px; }
.field input, .field select { min-height: 48px; }
.checks { gap: 4px 8px; }
.check { min-height: 40px; }

/* Footer: the Services list repeats the page, so phones skip it. */
.foot { gap: 18px; }
.foot > :nth-child(2) { display: none; }
.site-footer { padding-bottom: 12px; }

/* Very small phones. */
@media (max-width: 359px) {
  :root { --fs-display: 1.875rem; --fs-h2: 1.5rem; }
  .founder { grid-template-columns: 84px minmax(0, 1fr); }
  .founder__photo { width: 84px; }
  .site-header__logo img { height: 26px; }
}

/* Phones held sideways: the screen is short, so the logo gives way to the headline. */
@media (max-height: 480px) {
  .hero__brand > img { width: 96px; }
  .hero .btn-row { grid-template-columns: 1fr 1fr; }
}

/* Where students go: the colored cards replace the map on phones; system names take the card's text color. */

/* Hero: the founder line sits centered under the logo, as on desktop. */
.hero__brand { flex-direction: column; align-items: center; gap: 12px; }
.hero__brand .hero__founder { margin-top: 0; max-width: 320px; font-size: 0.8125rem; }
.hero__brand .hero__founder img { width: 44px; height: 44px; }
/* Very small phones: let the two founder lines wrap rather than run off the screen. */
@media (max-width: 359px) { .hero__founder-line { white-space: normal; } }

/* Where students go: the map runs edge to edge inside the gutter; caption under it. */
.dest-map-figure { margin-top: 14px; }
.dest-map__caption { flex-direction: column; align-items: flex-start; gap: 8px; }

/* Hero, layout A: the main button full width with the See how it works link under it; the map's heading is for
   screen readers only, so the map follows the text directly; the strip's title sits under the logos. */
.hero__cta { flex-direction: column; gap: 4px; width: 100%; margin-top: 16px; }
.hero__cta .btn { width: 100%; justify-content: center; }
.hero-dest { margin-top: 32px; text-align: left; }
.hero-dest .dest-map { width: auto; }
.hero .admits__title { margin: 10px 0 0; }

/* Concierge distance chart on phones: each lane stacks (name, a full-width bar, its span in words); the grade scale
   is replaced by that line of text, so nothing scrolls sideways. */
#concierge.section { padding-block: 28px !important; }
.dist__head { display: none; }
.dist__rows { gap: 14px; }
.dist__row { grid-template-columns: minmax(0, 1fr); row-gap: 6px; min-height: 0; }
.dist__track { height: 18px; }
.dist__bar { top: 3px; height: 12px; }
.dist__bar::before { top: 2px; }
.dist__span { grid-column: 1; position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
