/* The touch editions use the same headings, stories, enquiry and deep links as
   the desktop edition. Layout and controls change with the available space. */
.eo-country-picker, .eo-service-paging { display:none; }
.eo-country-picker[hidden], .eo-service-paging[hidden] { display:none; }
.eo-menu-panel { display:contents; }
.eo-toggle-glyph, .eo-menu-extras[hidden] { display:none; }

@media (max-width:1100px), (max-width:1366px) and (hover:none) and (pointer:coarse) {
  .eo-country-picker:not([hidden]) {
    grid-area:picker; display:grid; gap:6px; justify-self:start; width:min(100%,320px);
    color:var(--eo-action); font:600 14px/1.2 var(--eo-face);
  }
  .eo-country-select { display:block; position:relative; min-width:0; }
  .eo-country-select select {
    width:100%; min-height:48px; padding:9px 45px 8px 14px; appearance:none;
    border:1px solid var(--eo-line,#adb699); border-radius:6px; background:var(--eo-surface,var(--eo-paper));
    color:var(--eo-ink); font:550 19px/1.25 var(--eo-display); cursor:pointer;
  }
  .eo-country-select i { position:absolute; right:17px; top:50%; transform:translateY(-50%); font-size:12px; pointer-events:none; }
  .eo-country-select select:focus-visible, .eo-service-paging button:focus-visible {
    outline:2px solid var(--eo-action); outline-offset:3px;
  }
  .eo-menu-toggle, .eo-nav-cta, .eo-submenu a { min-height:44px; }
  .eo-student-home .eo-mast { background:var(--eo-paper); }
  .eo-mast:not(.eo-menu-enhanced) .eo-menu-panel:target .eo-navigation { display:block; }
  .eo-mast:not(.eo-menu-enhanced) .eo-menu-panel:target .eo-menu-return {
    display:inline-flex; align-items:center; min-height:44px; color:var(--eo-action); font-weight:650;
  }
  .eo-mast .eo-navigation { padding:8px 16px; background:var(--eo-paper); }
  .eo-menu-open .eo-nav-group summary { min-height:52px; }
  .eo-menu-list { width:100%; }
  .eo-submenu a { align-content:center; }
  .eo-footer-directory .eo-footer-nav a, .eo-location-tools .eo-map-switch button { min-height:44px; }
}

/* Phone: a photo cover above an inset editorial sheet. Each slide can grow
   with type size. Only the photograph is cropped when space is limited. */
@media (max-width:720px) {
  :root { --eo-kicker-gap:12px; --eo-intro-gap:14px; --eo-actions-gap:16px; }
  .eo-student-home .eo-mast { background:var(--eo-paper); }
  .eo-phone-header { --eo-utility-height:36px; }
  .eo-phone-header .eo-utility-inner { align-items:center; }
  .eo-phone-header .eo-utility .eo-office {
    display:flex; justify-content:space-between; gap:8px; width:100%; min-height:36px;
    font:550 clamp(12px,3.05vw,14px)/1.15 var(--eo-face); font-variant-numeric:tabular-nums;
  }
  .eo-phone-header .eo-office a { display:inline-flex; align-items:center; min-height:36px; }
  .eo-phone-header .eo-office .eo-utility-icon { display:inline-block; width:13px; height:13px; margin-right:5px; }
  .eo-student-home .eo-nav-row { min-height:60px; }
  .eo-student-home .eo-nav-row .eo-brand { font-size:clamp(19px,5.15vw,24px); }
  .eo-student-home .eo-menu-toggle {
    width:46px; height:46px; min-height:46px; margin-right:-4px; padding:0;
    background:transparent; border:0; border-radius:50%; color:var(--eo-ink);
  }
  .eo-menu-toggle .eo-toggle-text { display:none; }
  .eo-toggle-glyph { position:relative; display:block; width:25px; height:20px; }
  .eo-toggle-glyph i {
    position:absolute; left:0; width:25px; height:2px; border-radius:2px; background:currentColor;
    transform-origin:center; transition:transform .29s var(--eo-ease-out), width .24s ease, opacity .18s ease;
  }
  .eo-toggle-glyph i:first-child { top:2px; }
  .eo-toggle-glyph i:nth-child(2) { top:9px; }
  .eo-toggle-glyph i:last-child { top:16px; width:16px; }
  .eo-menu-open .eo-menu-toggle { background:var(--eo-celery); }
  .eo-menu-open .eo-toggle-glyph i:first-child { transform:translateY(7px) rotate(45deg); }
  .eo-menu-open .eo-toggle-glyph i:nth-child(2) { transform:scaleX(.25); opacity:0; }
  .eo-menu-open .eo-toggle-glyph i:last-child { width:25px; transform:translateY(-7px) rotate(-45deg); }
  .eo-menu-panel {
    position:absolute; top:100%; right:0; z-index:2; display:none; width:min(430px,100%);
    max-height:calc(100vh - var(--eo-mast-height) - 8px);
    max-height:calc(100dvh - var(--eo-mast-height) - 8px - env(safe-area-inset-bottom,0px));
    overflow-y:auto; overscroll-behavior:contain; scroll-margin-top:100vh; padding:5px 18px 12px;
    border:1px solid var(--eo-line,#b7c0a5); border-top:3px solid var(--eo-action);
    border-radius:0 0 18px 5px; background:var(--eo-paper); box-shadow:0 13px 28px -17px rgb(27 34 23 / 50%);
  }
  .eo-menu-open .eo-menu-panel, .eo-mast:not(.eo-menu-enhanced) .eo-menu-panel:target { display:block; }
  .eo-mast:not(.eo-menu-enhanced) .eo-menu-panel:has(.eo-navigation:target) { display:block; }
  .eo-menu-panel .eo-navigation, .eo-mast.eo-menu-open .eo-menu-panel .eo-navigation {
    position:static; display:block; width:100%; max-height:none; padding:0; overflow:visible;
    border:0; border-radius:0; box-shadow:none; background:transparent; animation:none;
  }
  .eo-menu-panel .eo-nav-group summary { min-height:46px; }
  .eo-menu-panel .eo-nav-group summary::after {
    content:""; flex:none; width:8px; height:8px; margin-inline-end:5px;
    border:solid var(--eo-muted,var(--eo-action)); border-width:0 1.5px 1.5px 0;
    transform:rotate(45deg); transition:transform .23s var(--eo-ease-out);
  }
  .eo-menu-panel .eo-nav-group details[open] > summary::after { transform:rotate(225deg); }
  .eo-menu-panel .eo-nav-cta { display:flex; width:100%; margin-top:8px; }
  .eo-menu-panel .eo-nav-cta .eo-action-surface {
    width:100%; min-height:44px; padding:5px 13px; justify-content:space-between; background:var(--eo-action); color:var(--eo-paper);
  }
  .eo-menu-panel .eo-nav-cta .eo-conversation { display:inline-grid; }
  .eo-menu-extras:not([hidden]) { display:grid; gap:3px; margin-top:10px; border-top:1px solid var(--eo-line,#bcc5ac); padding-top:9px; }
  .eo-menu-hours { color:var(--eo-muted,var(--eo-action)); font:500 13px/1.4 var(--eo-face); }
  .eo-menu-hours .eo-utility-icon { width:14px; height:14px; margin-inline-end:3px; color:var(--eo-action); }
  .eo-menu-extras .eo-social { position:static; display:flex; align-items:center; justify-content:flex-start; gap:5px; }
  .eo-menu-extras .eo-social a { width:44px; height:44px; min-height:44px; color:var(--eo-action); font-size:17px; }
  .eo-menu-extras .eo-social a:focus-visible { outline-offset:-3px; }
  .eo-student-cover {
    --phone-photo:clamp(177px,32svh,315px);
    display:grid; grid-template-columns:minmax(0,1fr);
    grid-template-rows:var(--eo-mast-height) minmax(var(--phone-photo),1fr) auto auto;
    min-height:100vh; min-height:100svh; background:var(--eo-paper);
  }
  .eo-student-cover .eo-campus-backdrop {
    position:relative; inset:auto; grid-area:2/1; width:100%; height:100%; min-height:0; overflow:hidden;
    align-self:stretch;
  }
  .eo-student-cover .eo-campus-backdrop img { object-position:50% 46%; }
  .eo-student-cover .eo-campus-backdrop::after { background:linear-gradient(180deg,transparent 65%,rgba(21,32,27,.15)); }
  .eo-student-cover .eo-campus-student {
    position:relative; grid-area:2/1; inset:auto; justify-self:center; align-self:stretch; order:0;
    width:100%; height:auto; min-height:0; overflow:hidden;
  }
  .eo-student-cover .eo-campus-student img {
    position:absolute; inset:10px auto auto 50%; transform:translateX(-50%);
    height:155%; width:auto; max-width:none; object-fit:contain;
  }
  .eo-student-cover .eo-reading-frame {
    grid-area:3/1; z-index:3; align-self:start; width:100%; min-height:0;
    padding:24px max(5.3vw,16px) 9px; margin:-13px 0 0;
    border-radius:0 20px 0 0; background:var(--eo-paper);
  }
  .eo-student-cover .eo-reading-copy { width:100%; }
  .eo-student-cover .eo-eyebrow { margin-bottom:12px; line-height:1.25; }
  .eo-student-cover :is(h1,h2) { max-width:none; font-size:clamp(38px,9.7vw,62px); line-height:.99; }
  .eo-student-cover .eo-intro-text { max-width:54ch; margin-top:13px; font-size:clamp(16px,3.6vw,18px); line-height:1.38; }
  .eo-student-cover .eo-actions { gap:8px; margin-top:14px; }
  .eo-student-cover .eo-actions .eo-button { font-size:14px; }
  .eo-student-cover .eo-cover-rail {
    position:relative; inset:auto; grid-area:4/1; padding:9px 0 max(10px,env(safe-area-inset-bottom));
    background:var(--eo-paper);
  }
  .eo-student-cover .eo-rail-inner {
    width:89.4%; padding-top:8px; border-top:1px solid var(--eo-line,#c6ceb5);
  }
  .eo-student-cover .eo-slider-tools button { width:42px; height:44px; }
  .eo-navigation { max-width:100%; }
  .eo-destination-spread { padding-block:40px; }
  .eo-destination-frame {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"heading" "picker" "photo" "brief" "review" "tools";
    row-gap:20px;
  }
  .eo-country-picker:not([hidden]) { width:100%; }
  .eo-place-feature { --eo-picture-inset:17px; }
  .eo-place-swiper { height:auto; min-height:0; aspect-ratio:1.37; }
  .eo-note-preparation { row-gap:12px; }
  .eo-company-spread { display:flex; flex-direction:column; align-items:stretch; gap:23px; }
  .eo-company-copy { order:-1; }
  .eo-company .eo-company-record { margin-top:22px; }
  .eo-company-photo { height:clamp(215px,64vw,350px); }
  .eo-services { padding:37px 0; }
  .eo-services-heading { margin-bottom:18px; }
  .eo-services-brief { gap:8px; }
  .eo-service-cards.has-service-paging {
    display:flex;
    position:relative; gap:12px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory;
    scrollbar-width:none; padding:2px 0 5px; align-items:stretch; -webkit-overflow-scrolling:touch;
  }
  .eo-service-cards.has-service-paging::-webkit-scrollbar { display:none; }
  .eo-service-cards.has-service-paging::after { content:""; flex:0 0 15px; }
  .eo-service-cards.has-service-paging .eo-service-card { flex:0 0 calc(100% - 27px); scroll-snap-align:start; }
  .eo-service-cards.has-service-paging .eo-service-card-media { aspect-ratio:1.65; max-height:265px; }
  .eo-service-card-action:focus-visible { outline-offset:-4px; }
  .eo-service-paging:not([hidden]) {
    display:flex; align-items:center; gap:6px; margin-top:8px; color:var(--eo-action);
  }
  .eo-service-pages { display:flex; gap:4px; align-items:center; margin-right:5px; }
  .eo-service-pages i { width:7px; height:4px; background:var(--eo-line,#b5be9f); border-radius:10px; }
  .eo-service-pages i.is-current { width:22px; background:var(--eo-action); }
  .eo-service-paging output { margin-right:auto; font:600 14px/1 var(--eo-face); }
  .eo-service-paging button {
    display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--eo-line,#afb99c);
    border-radius:50%; color:var(--eo-action); background:var(--eo-paper); font:500 23px/1 var(--eo-face);
  }
  .eo-service-paging button[aria-disabled=true] { opacity:.55; cursor:default; }
  .eo-founder-portrait { height:clamp(265px,78vw,390px); }
  .eo-route-turn button { min-width:44px; min-height:44px; }
  .eo-route-chapters { flex-wrap:wrap; }
  .eo-contact-spread { gap:32px; margin-block:44px 32px; }
  .eo-visit-pane { padding-top:24px; border-top:1px solid var(--eo-line,#bdc6af); }
  .eo-questions summary { min-height:48px; }
  .eo-map-directions, .eo-contact-direct a, .eo-copy-address { min-height:44px; }
  .eo-footer-directory .eo-footer-nav { border-top:1px solid currentColor; padding-top:11px; }
}

@media (max-width:375px) {
  .eo-mast:not(.eo-phone-header) .eo-utility-inner { min-height:54px; align-items:start; }
  .eo-mast:not(.eo-phone-header) .eo-utility .eo-office { display:grid; grid-template-columns:1fr; gap:2px; align-content:center; min-height:54px; }
  .eo-mast:not(.eo-phone-header) .eo-utility .eo-office li { grid-column:1; }
  .eo-mast:not(.eo-phone-header) .eo-utility .eo-social { top:3px; }
  .eo-mast:not(.eo-phone-header) .eo-utility .eo-social a { min-height:29px; width:25px; }
}

/* Tablet: a two-page prospectus with the selected country and its brief in
   view together, a featured planning card, and the office beside the form. */
@media (min-width:721px) and (max-width:1100px), (min-width:1101px) and (max-width:1366px) and (hover:none) and (pointer:coarse) {
  .eo-reading-frame { align-items:center; min-height:clamp(540px,88svh,840px); padding-top:calc(var(--eo-mast-height) + 25px); }
  .eo-student-cover .eo-reading-copy { width:54%; }
  .eo-student-cover :is(h1,h2) { font-size:clamp(43px,5.3vw,72px); }
  .eo-student-cover .eo-intro-text { max-width:39ch; font-size:clamp(17px,1.9vw,20px); }
  .eo-student-cover .eo-campus-student {
    left:auto; right:-2%; bottom:0; width:49%; height:calc(100% - var(--eo-mast-height) - 20px); aspect-ratio:auto;
  }
  .eo-student-cover .eo-campus-student img { object-fit:contain; object-position:50% bottom; }
  .eo-student-cover .eo-campus-backdrop::after {
    background:linear-gradient(90deg,var(--eo-paper) 0%,var(--eo-paper) 23%,transparent 79%);
  }
  .eo-destination-spread { padding-block:42px; }
  .eo-destination-frame { grid-template-columns:minmax(0,1.02fr) minmax(0,1fr); gap:22px clamp(19px,3vw,40px);
    grid-template-areas:"heading heading" "picker brief" "photo brief" "review review" "tools tools"; align-items:start; }
  .eo-country-picker:not([hidden]) { width:100%; max-width:none; }
  .eo-destination-frame .eo-place-swiper { height:clamp(280px,34vw,410px); min-height:0; }
  .eo-study-brief { align-self:center; }
  .eo-destination-tools a { min-height:72px; }
  .eo-note-preparation { grid-template-columns:minmax(0,1fr); }
  .eo-services .eo-service-cards { display:grid; grid-template-columns:1.04fr 1fr; gap:14px 16px; }
  .eo-services .eo-service-card:first-child { grid-row:span 2; }
  .eo-services .eo-service-card:first-child .eo-service-card-media { flex:1; min-height:200px; max-height:420px; aspect-ratio:auto; }
  .eo-services .eo-service-card:not(:first-child) { display:grid; grid-template-columns:minmax(88px,.43fr) minmax(0,1fr); border-radius:12px; overflow:hidden; }
  .eo-services .eo-service-card:not(:first-child) .eo-service-card-media { height:100%; max-height:none; aspect-ratio:auto; border-radius:0; }
  .eo-services .eo-service-card:not(:first-child) .eo-service-card-icon { position:absolute; left:7px; top:7px; margin:0; width:34px; height:34px; font-size:13px; }
  .eo-services .eo-service-card:not(:first-child) .eo-service-card-copy { padding:17px 14px 5px; }
  .eo-services .eo-service-card h3 { font-size:clamp(25px,3vw,37px) !important; }
  .eo-services .eo-service-card h3, .eo-service-summary { overflow-wrap:break-word; }
  .eo-contact-spread { grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(22px,4vw,55px); }
  .eo-contact-pane .eo-form-pair { display:grid; grid-template-columns:minmax(0,1fr); }
  .eo-guide-spread { grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr); }
  .eo-footer-directory { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; align-items:start; }
  .eo-footer-identity { grid-column:1; grid-row:1; }
  .eo-footer-directory .eo-footer-nav { grid-row:1; }
  .eo-footer-offices { grid-column:1/3; grid-row:2; display:flex; flex-wrap:wrap; align-items:start; gap:13px 22px; }
  .eo-footer-icef { grid-row:2; grid-column:3; justify-self:end; }
}

@media (min-width:721px) and (max-width:1100px) and (orientation:portrait) {
  .eo-student-cover .eo-campus-student img { object-fit:cover; object-position:39% top; }
  .eo-student-cover .eo-campus-student { height:70%; width:46%; }
}

/* Small-screen colophon. The accreditation and contact details remain visible
   while the two site directories share a single disclosure. */
.eo-footer-menu[hidden] { display:none; }
@media (max-width:720px) {
  .eo-colophon .eo-footer-body {
    width:min(89%,560px);
    margin-inline:auto;
  }
  .eo-footer-directory {
    display:flex;
    flex-direction:column;
    gap:0;
    padding:6px 0 4px;
  }
  .eo-footer-directory > * { width:100%; }
  .eo-footer-identity { order:0; grid-template-columns:minmax(0,1fr); padding:15px 0 20px; }
  .eo-footer-identity:has(.eo-footer-menu:not([hidden])) .eo-footer-lockup {
    grid-area:1 / 1; align-self:start; position:relative; z-index:1;
    max-width:calc(100% - 52px); min-height:46px;
  }
  .eo-footer-lockup { gap:11px; margin-bottom:14px; }
  .eo-footer-lockup img { width:clamp(39px,10vw,50px); }
  .eo-footer-lockup > span { font-size:clamp(25px,6.35vw,36px); }
  .eo-footer-lockup small { margin-top:4px; font-size:clamp(8px,2vw,10px); }
  .eo-footer-directory :is(.eo-footer-email,.eo-footer-phone) {
    gap:10px;
    min-height:44px;
    padding:0;
    font-size:17px;
    line-height:1.35;
    overflow-wrap:normal;
  }
  .eo-footer-email span { white-space:nowrap; overflow-wrap:normal; }
  .eo-footer-identity .eo-footer-copyright { max-width:none; margin-top:6px; }
  .eo-footer-icef {
    order:1;
    display:grid;
    grid-template-columns:clamp(88px,27vw,134px) minmax(0,1fr);
    align-items:center;
    gap:clamp(16px,5vw,30px);
    padding:16px clamp(13px,4.5vw,28px);
    border:1px solid rgb(220 232 214 / 25%);
    border-radius:3px 17px 3px 3px;
    background:linear-gradient(115deg,rgb(255 255 255 / 7%),transparent 85%);
    text-align:left;
  }
  .eo-footer-icef img { width:100%; height:auto; max-width:none; }
  .eo-credential-copy { justify-items:start; gap:4px; }
  .eo-credential-copy strong { font-size:clamp(22px,5.7vw,31px); line-height:1.02; text-wrap:balance; }
  .eo-credential-verify { margin-top:6px; font-size:14px; }
  .eo-footer-offices {
    order:2;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
    gap:11px 10px;
    margin:24px 0 17px;
  }
  .eo-footer-offices h2 { grid-column:1 / -1; margin:0; }
  .eo-footer-directory .eo-footer-offices a { min-height:46px; margin:0; align-items:flex-start; gap:6px; }
  .eo-footer-offices a > span { min-width:0; }
  .eo-footer-offices time { white-space:nowrap; }
  .eo-footer-directory > .eo-footer-nav { order:3; }
  .eo-footer-menu { grid-area:1 / 1; width:100%; }
  .eo-footer-menu summary {
    margin-inline-start:auto;
    display:grid;
    place-items:center;
    width:46px;
    height:46px;
    border:1px solid currentColor;
    border-radius:50%;
    list-style:none;
    color:inherit;
    font:580 17px/1.25 var(--eo-face);
    cursor:pointer;
  }
  .eo-footer-menu summary::-webkit-details-marker { display:none; }
  .eo-footer-menu summary:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
  .eo-footer-menu-icon {
    position:relative;
    display:grid;
    width:30px;
    height:30px;
    place-items:center;
    color:inherit;
  }
  .eo-footer-menu-icon::before, .eo-footer-menu-icon::after, .eo-footer-menu-icon i {
    content:"";
    position:absolute;
    width:17px;
    height:1.5px;
    background:currentColor;
  }
  .eo-footer-menu-icon::before { transform:translateY(-5px); }
  .eo-footer-menu-icon::after { transform:translateY(5px); }
  .eo-footer-menu[open] .eo-footer-menu-icon::before { transform:rotate(45deg); }
  .eo-footer-menu[open] .eo-footer-menu-icon::after { transform:rotate(-45deg); }
  .eo-footer-menu[open] .eo-footer-menu-icon i { opacity:0; }
  .eo-footer-menu-items {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px clamp(12px,4vw,26px);
    padding:12px 0;
    margin-bottom:12px;
    border-block:1px solid rgb(220 232 214 / 26%);
  }
  .eo-footer-menu-items .eo-footer-nav { border:0; padding:0; }
  .eo-footer-directory .eo-footer-nav a { min-height:44px; gap:7px; font-size:15px; }
  .eo-footer-menu-items .eo-theme-switch { grid-column:1 / -1; width:fit-content; min-height:44px; padding-inline:0; }
  .eo-footer-end { padding:0 0 max(15px,env(safe-area-inset-bottom)); }
  .eo-footer-social {
    position:static;
    transform:none;
    justify-content:center;
    gap:12px;
    padding:13px 0 12px;
  }
  .eo-footer-social a { width:44px; height:44px; }
  .eo-footer-signature, .eo-footer-signature.is-set {
    width:100%;
    aspect-ratio:auto !important;
    overflow:visible;
  }
  .eo-footer-signature .eo-signature-run, .eo-footer-signature.is-set .eo-signature-run {
    position:static;
    display:block;
    visibility:visible;
    width:100%;
    font:500 clamp(32px,11.3vw,79px)/1.12 var(--eo-display,Georgia,serif);
    letter-spacing:-.057em;
    text-transform:none;
    white-space:nowrap;
  }
  .eo-footer-signature svg { display:none; }
  @media (prefers-reduced-motion:no-preference) {
    .eo-footer-menu-icon::before, .eo-footer-menu-icon::after, .eo-footer-menu-icon i {
      transition:transform .22s ease,opacity .16s ease;
    }
  }
}
