/* IGCSE past year papers (/igcse-past-year-papers/) only: linked after pages.css by the page's front matter
   "css": ["p-igcse-past-year-papers"]. AEO package Phase 3, 18 Nov 2026 (a5); round 2 (w2g): the paper-code exhibit in
   the hero, the heading on the wrap edge, the coverage table, the lists by variant from 961 px, the open subject's name
   kept in view, labelled gaps, a deeper wash on the two related cards. Tokens from style.css. */

/* FAQ questions and the subject names are h3s inside their summaries; they look exactly like the summary */
.faq-item summary h3, .papers summary h3 { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; }

/* hero: the words on the left, "how to read a paper code" on the right (the page's own object; no photo of its own) */
.pp-hero .crumbs ol { color: rgba(251, 248, 242, .8); }   /* the current page's crumb: 4.2:1 at .62 on the gradient's bright top; 5:1+ now */
.pp-code { margin: 34px 0 0; padding: clamp(22px, 2.4vw, 34px); border: 1px solid rgba(227, 207, 165, .32); border-radius: 12px; background: rgba(7, 39, 36, .38); max-width: 520px; }
.pp-code figcaption { font: 700 12.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-l); }
.pp-code__num { margin: 14px 0 18px; font: 400 clamp(64px, 7.4vw, 112px)/.95 var(--serif); letter-spacing: -.02em; color: var(--paper); }
.pp-code__num em { font-style: italic; color: var(--gold-l); }
.pp-code__num em + em { margin-left: .06em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; text-decoration-color: rgba(227, 207, 165, .55); }
.pp-code__key { margin: 0; display: grid; gap: 10px; }
.pp-code__key div { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 14px; align-items: baseline; padding-top: 10px; border-top: 1px solid rgba(227, 207, 165, .22); }
.pp-code__key dt { font: italic 400 26px/1 var(--serif); color: var(--gold-l); }
.pp-code__key dd { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(251, 248, 242, .9); }
.pp-code__then { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: rgba(251, 248, 242, .8); }
@media (min-width: 961px) {
  .pp-hero .phero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: clamp(48px, 6vw, 110px); }
  .pp-hero .phero__in > * { grid-column: 1; }
  .pp-hero .pp-code { grid-column: 2; grid-row: 1 / span 5; align-self: end; justify-self: end; width: 100%; margin: 0; }
}

/* how to use past papers: the words beside the five steps */
.pp-how { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.pp-how p:not(.kicker):not(.lead) { color: var(--muted); max-width: 60ch; }
.pp-how p.lead { color: var(--ink); margin: 24px 0 16px; }
.pp-how p b { color: var(--ink); font-weight: 600; }
.pp-how p a { color: var(--pine); font-weight: 600; text-underline-offset: 3px; }
.pp-how .steps { margin-top: 8px; }
.pp-src { margin-top: 18px; font-size: 15px; }
.pp-parents { font-size: 15px; font-style: italic; }

/* the papers chapter: its heading on the wrap edge like every other chapter, the paragraph beside it */
.pp-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(40px, 6vw, 110px); align-items: end; margin-bottom: clamp(30px, 3.4vw, 46px); }
.pp-head > p { margin: 0; color: var(--muted); max-width: 62ch; }
@media (max-width: 960px) { .pp-head { grid-template-columns: minmax(0, 1fr); } }

/* what each list covers: a boxed table, then the note on where the files live */
.pp-cover .dtable { font-size: 15px; }
.pp-cover .dtable tbody th { font-size: clamp(19px, 1.5vw, 22px); }
.pp-cover .dtable td:first-of-type { min-width: 15em; }
.pp-note { margin: 18px 0 clamp(30px, 3.4vw, 44px); max-width: 80ch; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* the three subjects: full wrap width, all closed so their three names read as a menu under the heading */
.pp-wrap .papers { width: auto; margin: 0; }
.papers summary small { font-size: 13px; }
/* an open subject keeps its name in view while a student scrolls its sessions (under the header when it shows) */
.papers details[open] > summary { position: sticky; top: 0; z-index: 3; background: var(--white); border-radius: 12px 12px 0 0; box-shadow: 0 1px 0 var(--line); transition: top .35s var(--ease, ease); }
body:has(.hdr.is-solid:not(.is-hidden)) .papers details[open] > summary { top: 72px; }
@media (max-width: 760px) { body:has(.hdr.is-solid:not(.is-hidden)) .papers details[open] > summary { top: 64px; } }
.pp { padding: 18px 24px 24px; }
.pp__lead { margin: 0 0 12px; max-width: 80ch; font-size: 16px; line-height: 1.55; color: var(--ink); }
.pp__lead a { color: var(--pine); font-weight: 600; text-underline-offset: 3px; }
.pp__key { margin: 0 0 16px; max-width: 80ch; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.pp__vh { display: none; }

/* one row per exam session; each paper on one line: Paper NN · mark scheme (· insert) */
.pp__list { display: grid; grid-template-columns: 150px minmax(0, 1fr); margin: 0; }
.pp__list dt { padding: 15px 14px 12px 0; border-top: 1px solid var(--line); font: 600 15px/1.3 var(--sans); color: var(--pine-dd); }
.pp__list dd { margin: 0; padding: 8px 0 10px; border-top: 1px solid var(--line); }
.pp__list ul { list-style: none; margin: 0; padding: 0; min-width: 0; }
.pp__list li { display: grid; grid-template-columns: 5.6em repeat(2, max-content); gap: 0 22px; align-items: baseline; padding: 5px 0; font-size: 15px; line-height: 1.4; }
.pp--2 li { grid-template-columns: 5.6em max-content; }
.pp__list li > :first-child { font-weight: 600; }
.pp__list a { color: var(--pine); text-underline-offset: 3px; }
.pp__list a:hover { color: var(--pine-dd); }
.pp__na { font-style: normal; font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.pp__list li:has(.pp__na) { grid-template-columns: 5.6em max-content minmax(0, 1fr); }
/* the specimen papers sit in one row across the session */
.pp__list .v0 { display: flex; flex-wrap: wrap; gap: 0 44px; }

/* from 961 px (1100 px for English Language, three files a line): a session's variants side by side, under a
   Variant 1 · 2 · 3 header row, so a session takes one to three lines instead of three to nine */
@media (min-width: 961px) {
  .pp__vh--2 { display: grid; }
  .pp__vh { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin: 0; max-width: none; padding: 0 0 8px 150px; font: 700 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
  .pp--2 dd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; align-items: start; }
  .pp--2 .v1 { grid-column: 1; } .pp--2 .v2 { grid-column: 2; } .pp--2 .v3 { grid-column: 3; }
  .pp--2 .v0 { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .pp__vh--3 { display: grid; }
  .pp--3 dd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; align-items: start; }
  .pp--3 .v1 { grid-column: 1; } .pp--3 .v2 { grid-column: 2; } .pp--3 .v3 { grid-column: 3; }
  .pp--3 .v0 { grid-column: 1 / -1; }
  .pp--3 li { grid-template-columns: 5.2em repeat(2, max-content); gap: 0 18px; }
}
@media (max-width: 640px) {
  .pp { padding: 14px 16px 18px; }
  .pp__list { grid-template-columns: minmax(0, 1fr); }
  .pp__list dt { padding-bottom: 0; }
  .pp__list dd { border-top: 0; }
  .pp__list li { gap: 0 16px; }
  .pp__list .v0 { display: block; }
}

/* when students sit the IGCSE, on pine: words beside the key facts, then the two related pages */
.pp-igcse { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.pp-igcse .lead { color: var(--paper); margin: 24px 0 16px; }
.pp-igcse p:not(.kicker):not(.lead) { max-width: 60ch; }
.sec--pine .pp-igcse a { color: var(--gold-l); font-weight: 600; }
.pp-next { margin-top: clamp(50px, 6vw, 80px); }
/* a deeper wash under the words (the IGCSE-or-SPM card's whiteboard is bright); the arrow stays with the last word */
.pp-next a::before { background: linear-gradient(to top, rgba(7, 39, 36, .95) 0%, rgba(7, 39, 36, .86) 50%, rgba(7, 39, 36, .38) 100%); }
.pp-next b { text-wrap: balance; }
.pp-next b::after { content: "\00a0→"; }
@media (max-width: 960px) { .pp-how, .pp-igcse { grid-template-columns: minmax(0, 1fr); } }

/* 20 Nov 2026 (the rewrite to the article standard): the page now uses the site's article layout, so the three subject
   lists sit inside the article column (at most 700 px). There they keep the one-column layout they have on a phone
   (each variant under its session, no variant header row) and none of the prose list styling. */
.prose .papers { width: auto; margin: 1.8em 0; }
.prose .papers .pp__list ul { list-style: none; margin: 0; padding: 0; }
.prose .papers .pp__list li + li { margin-top: 0; }
.prose .papers .pp__vh { display: none; }
.prose .papers .pp--2 dd, .prose .papers .pp--3 dd { display: block; }
