/* home.css: the .com home page only (index.html), loaded straight after page.css. */
/* ============================================================================
   THE HOME'S "PAST PAPERS BY TOPIC" BLOCK (the lead's 12 Nov 2026 16:43Z ORDER; Joe 16:41Z: "Given the generators are
   my most popular features, I think they should be clearly mentioned/promoted from the landing page"). Three rows, one
   tap each to the AQA A-Level, OCR A-Level and AQA GCSE generators, straight after the doors (before the "Notes stay
   free" line, which wraps to two lines at 375 and would push the heading below a 375 x 667 first screen), so its heading
   is on a 375 px phone's first screen. The rows reuse the home's own list (.c-list .m-hubs, in
   page.css), so the only rules here are the block's spacing and its place in the hero's desktop grid. They live in
   this home-only file (as home.js is the home's own script), not in page.css, which every notes page loads, and not in
   sitepage.css, which only main.c-sitepage pages may load (bridge-320, site-pages-cplus). Every rule is scoped to .hm-home.
   ========================================================================= */
.hm-home .m-papers { margin-top: var(--c-s5); }
.hm-home .m-papers .m-hubs { margin-top: var(--c-s2); }
/* the hero's grid places each of its children by name (page.css); the block takes a full-width row of its own */
@media (min-width: 900px) {
  .hm-home .m-hero-grid > .m-hero-text > .m-papers { grid-column: 1 / -1; grid-row: 7; }
  .hm-home .m-papers .c-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--c-s4); }
  .hm-home .m-papers .c-list > li:last-child { border-bottom: 0; }
  .hm-home .m-papers .c-list > li { border-bottom: var(--c-line); }
}
@media (min-width: 900px) and (max-width: 1183.98px) {
  .hm-home .m-hero-grid > .m-hero-text > .m-papers { grid-row: 5; }
  .hm-home .m-hero-grid > .m-proof { grid-row: 6; }
}


/* The tutor headshot is served as WebP through <picture> with its JPG fallback (the lead's 16 Nov 21:04Z ORDER, from the SEO
   audit). page.css sizes and places the <img> as the flex item (.m-doors) and the grid item (.m-tuition); display: contents
   keeps the <picture> wrapper out of that layout, so the image sits exactly where it did. */
.m-doors picture, .m-tuition picture { display: contents; }
/* Under display: contents a <source> would become a flex item (taking the door's 12px gap) and a grid cell in .m-tuition.
   It is never drawn, and the browser picks the image from the HTML, not from CSS, so hiding it changes nothing else. */
.m-doors picture > source, .m-tuition picture > source { display: none; }
