/* Videos only: linked after pages.css by the page's front matter "css": ["p-video"].
   AEO package Phase 3 (author a3) and round 2 (w2e, 18 Nov 2026). Tokens from style.css; components from pages.css. */

/* the hero: the four groups as jump chips, Book a tour, then the lead film (a real school picture, 1280 px) */
.phero--plain .crumbs ol { color: rgba(251, 248, 242, .82); }
.phero--plain .phero__cta { margin-top: 22px; }
.phero__video { margin-top: clamp(30px, 4vw, 50px); }
.phero__video figcaption { color: var(--paper); }

/* a film linked from another page lands below the sticky header */
.vid[id], #school, #character, #celebrations, #years, #all-films { scroll-margin-top: 96px; }

/* group kickers: an italic serif numeral in place of the bar ("01 · The school and its campus") */
.vkick .vnum { font: italic 400 30px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--gold-ink); }
.sec--pine .vkick .vnum { color: var(--gold-l); }

/* captions: the title as a label (one step smaller than pages.css), then the month and a plain YouTube link */
.vid figcaption { font-size: 16px; line-height: 1.35; }
.vid--lead figcaption { font-size: 19px; }
.phero__video figcaption { font-size: 19px; }
.vid figcaption .vid__t { display: block; }
.vid figcaption small { display: block; margin-top: 7px; font: 600 12.5px/1.4 var(--sans); letter-spacing: .03em; color: var(--muted); }
.vid figcaption small a { color: var(--pine); text-decoration: none; border-bottom: 1px solid var(--gold); }
.vid figcaption small a:hover { border-bottom-color: currentColor; }
.sec--pine .vid figcaption small { color: rgba(251, 248, 242, .78); }
.sec--pine .vid figcaption small a { color: var(--gold-l); }
.phero .vid figcaption small { color: rgba(251, 248, 242, .8); }
.phero .vid figcaption small a { color: var(--gold-l); }

/* one shared thumbnail treatment: a light pine wash over every film (the title cards come in many colours),
   lifted on hover and keyboard focus; the play disc sits bottom-left, off the cards' lettering */
.vgrid .yt img { filter: saturate(.62); transition: transform 1s var(--ease), filter .5s; }
.vgrid .yt::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(7, 39, 36, .5), rgba(15, 74, 67, .16) 60%); mix-blend-mode: multiply; transition: opacity .5s; }
.vgrid .yt:hover img, .vgrid .yt:focus-visible img { filter: none; transform: scale(1.04); }
.vgrid .yt:hover::before, .vgrid .yt:focus-visible::before, .yt.is-playing::before { opacity: 0; }
.yt::after { z-index: 2; left: 16px; top: auto; bottom: 16px; margin: 0; }
.yt--big::after { left: 24px; bottom: 24px; margin: 0; }
.yt:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* each group: one lead film large beside two smaller (the side alternates), then the rest three across */
@media (min-width: 761px) {
  .vgrid--lead { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .vgrid--lead > .vid--lead { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .vgrid--flip > .vid--lead { grid-column: 2 / span 2; }
  .vgrid--lead > :last-child:nth-child(odd) { grid-column: auto; justify-self: stretch; width: auto; }
  .vid--lead .yt::after { width: 80px; height: 80px; background-size: 34px; left: 20px; bottom: 20px; }
}

/* phones: the lead film full width, the others as a compact list (thumbnail left, title right) */
@media (max-width: 760px) {
  .vgrid--lead { gap: 18px; }
  .vgrid--lead > .vid:not(.vid--lead) { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: start; }
  .vgrid--lead > .vid:not(.vid--lead) figcaption { margin-top: 0; font-size: 16px; }
  .vgrid--lead > .vid:not(.vid--lead) .yt { border-radius: 6px; }
  .vgrid--lead > .vid:not(.vid--lead) .yt::after { width: 36px; height: 36px; left: 8px; bottom: 8px; background-size: 16px; }
  .vgrid--lead > .vid--lead { margin-bottom: 8px; }
  .vkick .vnum { font-size: 26px; }
}

/* the table of every film */
.vtable tbody th { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.3; }
.vtable tbody th a { color: var(--pine-dd); font-weight: 400; text-decoration: none; border-bottom: 1px solid var(--gold); }
.vtable tbody th a:hover { border-bottom-color: var(--pine); }
@media (min-width: 761px) { .vtable td { white-space: nowrap; } }  /* phones: pages.css stacks each row, cells labelled */

/* each question is an h3 inside its summary (for the engines), styled exactly as the summary is */
.faq-item summary h3 { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }
.faq-item div a { color: var(--pine); font-weight: 600; }

/* the two cards at the foot: a deeper wash where the small label sits (measured 4.25:1 at 390 under pages.css's wash) */
.next a::before { background: linear-gradient(to top, rgba(7, 39, 36, .94), rgba(7, 39, 36, .62) 55%, rgba(7, 39, 36, .3)); }
