/* Questions parents ask only: linked after pages.css by the page's front matter "css": ["p-faq"].
   Design review r1, 18 Nov 2026 (F2): R1-12, R1-23. Page review round 2 (r2b, 18 Nov 2026): the Design seat's fixes 1,
   4, 5, 6, 7 and the AEO seat's one heading per question. Tokens from style.css. */

/* Design 1: the hero is the library's shelves (faq-hero, no window onto the street) under a deeper pine wash, so the
   crumbs, the gold kicker, the h1 and the header menu all sit on a dark ground. On a phone the text runs the full width,
   so the wash is even across it. */
.phero::before {
  background: linear-gradient(to top, rgba(7, 39, 36, .95) 0%, rgba(7, 39, 36, .64) 38%, rgba(7, 39, 36, .42) 66%, rgba(7, 39, 36, .74) 86%, rgba(7, 39, 36, .8) 100%),
              linear-gradient(90deg, rgba(7, 39, 36, .84) 0%, rgba(7, 39, 36, .62) 50%, rgba(7, 39, 36, .22) 82%);
}
.phero__img img { object-position: 30% 70%; }
@media (max-width: 760px) {
  .phero::before {
    background: linear-gradient(to top, rgba(7, 39, 36, .95) 0%, rgba(7, 39, 36, .82) 45%, rgba(7, 39, 36, .76) 100%),
                linear-gradient(rgba(7, 39, 36, .3), rgba(7, 39, 36, .3));
  }
}

/* R1-23 one rule between groups: the next group's top rule; the list no longer draws its own bottom line */
.qa .faq__list { border-bottom: 0; }

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

/* Design 4: a reading measure for the answers and the answer block */
.qa details > div p, .qa__list, .qa__dl { max-width: 66ch; }
.qa .lede__answer { max-width: 62ch; }

/* Design 5: no single orphaned word in the group titles or the answer block's question */
.qa__top .h3, #faq-intro { text-wrap: balance; }

/* the "ask us" topics, said once under the answer block (Editorial 10) */
.qa__ask { margin: 26px 0 0; padding: 16px 20px; max-width: 62ch; background: var(--white); border-radius: 8px; box-shadow: 0 0 0 1px var(--line); border-left: 3px solid var(--gold); font-size: 15.5px; color: var(--ink); }
.qa__ask b { color: var(--pine-dd); }
.qa__ask a { color: var(--pine); font-weight: 600; }

/* Design 7: the four campuses as a list and the two ESL levels as a two-row list, inside their answers */
.qa__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.qa__list li { position: relative; padding-left: 18px; color: var(--muted); }
.qa__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.qa__list b, .qa__dl dt { color: var(--pine-dd); font-weight: 700; }
.qa__dl { margin: 0 0 16px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.qa__dl > div { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qa__dl dd { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .qa__dl > div { grid-template-columns: minmax(0, 1fr); } }

/* Design 6: the five group heads are not one block stamped five times. Each photo is captioned for what it shows, and
   the frames change from group to group: landscape, portrait, wide, landscape (the ESL page's own photo, in its own
   3:2 so neither student is cut), 4:3. */
.qa__top figure { background: none; border-radius: 0; overflow: visible; width: 100%; }
.qa__top figure img { border-radius: 8px; background: var(--cream); }
.qa__top figcaption { margin-top: 9px; font: 600 12.5px/1.35 var(--sans); letter-spacing: .02em; color: var(--muted); }
.qa__top figcaption a { color: var(--pine); text-decoration: none; }
.qa__top figcaption a::after { content: " →"; color: var(--gold-ink); }
#journey .qa__top figure img, #english .qa__top figure img { aspect-ratio: 3 / 2; }
#campuses .qa__top figure img { aspect-ratio: 16 / 9; }
@media (min-width: 961px) {
  .qa__top figure { justify-self: end; }
  #inclusive .qa__top { grid-template-columns: minmax(0, 1fr) minmax(0, 250px); }
  #inclusive .qa__top figure img { aspect-ratio: 4 / 5; }
  #campuses .qa__top { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
}

/* "Still have a question?" (were inline styles) */
.qa__still { max-width: 62ch; color: var(--muted); }
.qa__still-cta { margin-top: 22px; }
