/* Admissions only: linked after pages.css by the page's front matter "css": ["p-admissions"].
   AEO package Phase 3 (18 Nov 2026, author a2). Tokens from style.css; nothing here redefines a shared component. */

/* FAQ questions as h3 inside the summary (phase2-lessons 10): looks exactly like the summary text */
.faq-item summary h3 { margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }

/* the joining steps: the reception photo stays in view beside the four steps on wide screens */
#steps .steps { margin-top: 30px; }
.adm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (min-width: 961px) { .adm-sticky { position: sticky; top: 130px; } }

/* the age finder on its own row above the stage table */
.adm-finder { margin: 0 0 22px; }

/* a photo that is a link to the page that owns it (ESL, inclusive education, campuses) */
.adm-pic { position: relative; display: block; color: inherit; text-decoration: none; border-radius: 8px; }
.adm-pic img { transition: transform 1.2s var(--ease); }
.adm-pic:hover img { transform: scale(1.04); }
.adm-pic__label { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 6px; background: var(--pine-dd); color: var(--paper);
  font: 600 14px/1.2 var(--sans); }
.adm-pic__label::after { content: "→"; color: var(--gold-l); transition: transform .35s var(--ease); }
.adm-pic:hover .adm-pic__label::after { transform: translateX(4px); }
.adm-pic:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* the student pass line under the numbered path, on pine */
.adm-visa__more { margin: 34px 0 0; max-width: 70ch; color: rgba(251, 248, 242, .8); }
.adm-visa__more .link-arrow { margin-right: 10px; }
.adm-visa__more a:not(.link-arrow) { color: var(--gold-l); text-decoration: underline; text-underline-offset: 3px; }

/* bring | ask: two checklist cards side by side */
.adm-lists { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 22px; align-items: stretch; }
@media (max-width: 960px) { .adm-lists { grid-template-columns: minmax(0, 1fr); } }

/* four campuses: the head with the campus photo, then the four cards two by two */
.adm-campus { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.adm-campus__head > p:not(.kicker) { color: var(--muted); max-width: 46ch; margin: 24px 0 28px; }
.adm-campus__head > p a { color: var(--pine); font-weight: 600; }
.adm-campus__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.adm-camp { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 24px; border-radius: 10px; background: var(--white);
  box-shadow: 0 0 0 1px var(--line); border-top: 2px solid var(--gold); }
.adm-camp .adm-camp__type { margin: 0; font: 700 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.adm-camp .adm-camp__name { margin: 2px 0 2px; font: 400 clamp(24px, 2vw, 30px)/1.15 var(--serif); color: var(--pine-dd); }
.adm-camp .adm-camp__name a { color: var(--pine-dd); font-weight: 400; text-decoration: none; }
.adm-camp .adm-camp__name a:hover { color: var(--pine); }
.adm-camp p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.adm-camp p a { color: var(--pine); font-weight: 600; }
.adm-camp .adm-camp__addr { color: var(--ink); }
.adm-camp__tel a { white-space: nowrap; }
.adm-camp__wa { margin-top: auto; padding-top: 10px; align-self: flex-start; color: var(--pine); font-weight: 600; font-size: 15px; }
@media (max-width: 960px) { .adm-campus { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .adm-campus__list { grid-template-columns: minmax(0, 1fr); } }

/* round 2 (w2a, design r1 CRITICAL + fix 1): hero contrast. The lobby's bright windows sat behind the crumbs and the
   kicker. A deeper left wash behind the text column and a deeper top on wide screens; on phones the photo moves to the
   green wall and glass rooms, under a wash that stays deep from the crumbs down. Measured at 390, 768 and 1440 (PIL,
   scratch/w2a): crumbs, kicker and lead at 4.5:1 or more. */
.phero::before {
  background: linear-gradient(to top, rgba(7, 39, 36, .95) 0%, rgba(7, 39, 36, .7) 40%, rgba(7, 39, 36, .55) 70%, rgba(7, 39, 36, .72) 100%),
              linear-gradient(90deg, rgba(7, 39, 36, .88) 0%, rgba(7, 39, 36, .8) 46%, rgba(7, 39, 36, .34) 70%, transparent 88%);
}
@media (max-width: 760px) {
  .phero__img img { object-position: 80% 50%; }
  .phero::before { background: linear-gradient(to top, rgba(7, 39, 36, .96) 0%, rgba(7, 39, 36, .86) 50%, rgba(7, 39, 36, .86) 100%); }
}

/* round 2 (w2a, design r1 fix 6): the four joining steps lead the page: a wider text column, larger step titles, the
   reception photo (re-cut at the counter front, fix 7) smaller beside them */
.nw { white-space: nowrap; }
#steps .steps h3 { font-size: clamp(25px, 2.3vw, 34px); margin-top: 8px; }
#steps .steps p { font-size: 17px; }
.adm-welcome img { aspect-ratio: 6 / 5; }
@media (min-width: 961px) { .adm-steps { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }

/* the special needs line under the stage table (editorial r1 fix 13: no "Every child" in the Ages column) */
.adm-sen-line { margin: 22px 0 0; max-width: 78ch; padding: 4px 0 4px 18px; border-left: 2px solid var(--gold); color: var(--ink); }
.adm-sen-line a { color: var(--pine); font-weight: 600; }

/* design r1 fix 3 and 11: photos change sides. On wide screens the assessment and inclusive photos sit on the left
   (the text stays first in the source, so on phones every photo follows its own text and no two photos stack) */
@media (min-width: 961px) { .adm-left .duo__media { order: -1; } }

/* design r1 fix 4: the paragraph after the ESL levels list starts clear of the list */
.duo__text .adm-after-list { margin-top: 24px; }

/* design r1 fix 5: the inclusive education photo as a smaller landscape link card (the special needs page owns it) */
@media (min-width: 961px) { .adm-sen { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.adm-pic--sm { max-width: 520px; }
.adm-pic--sm img { object-position: 50% 30%; }
