/* A&U Learn — built to the Allen & Unwin Brand Guidelines (Aug 2026).
   Headings: Montserrat (primary typeface). Body: Nunito Sans, the free web
   match for Avenir (the guidelines' secondary typeface), so every visitor
   sees the same font.
   Colours are the brand palette exactly; the guidelines say not to add others.
   Text on colour follows the guide's "good combos" (navy on yellow/teal/blue,
   cream on navy/eucalyptus). */
:root {
  --au-yellow: #f0ba45;
  --feather: #ffd504;
  --orangellow: #feaf0a;
  --teal: #70bcbb;
  --cream: #fefde9;
  --blue: #5093a8;
  --eucalyptus: #416151;
  --navy: #133742;
  --ink: #1d2a2f;
  --muted: #55636a;
  --line: #e4e1cf;
  --white: #ffffff;
  --radius: 10px;
  --wrap: 1180px;
  --head: "Montserrat", system-ui, sans-serif;
  /* Nunito Sans first, always (Simon, 2026-10-07). Listing Avenir first made
     each visitor get whatever "Avenir" they happened to have installed -- on
     A&U PCs that is Avenir Next Condensed, which reads thin and narrow. */
  --body: "Nunito Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
/* The search/filter script hides cards with the `hidden` attribute; without
   this, .card's display:flex would override it and nothing would disappear. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55;
       color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--orangellow); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 50; background: var(--white); padding: 8px 12px; }

/* Breakpoints: "up to" rules end at .98px (859.98px, not 859px) so that a
   browser at 125% scaling, whose width can be 859.2px, never falls between
   the phone and desktop rules and loses both (Simon's screen, 2026-11-09). */
/* ---- header -------------------------------------------------------- */
.site-header { background: var(--white); border-top: 6px solid var(--au-yellow);
               border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
/* 14px of white space above and below the logo; the header is the logo's
   height plus 28px. (Shrinking the logo to keep the old header height made
   the tagline too small -- Simon, 2026-10-07.) */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 112px; }
.brand { flex: none; }                     /* the logo never gives up width to the menu */
.brand img { height: 84px; width: auto; max-width: none; }
@media (min-width: 1000px) { .header-inner { height: 128px; } .brand img { height: 100px; } }
.site-nav { display: flex; gap: 4px; align-items: center; font-family: var(--head); font-weight: 600; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--navy); padding: 10px 12px; border-radius: 6px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--cream); color: var(--navy); box-shadow: inset 0 -3px 0 var(--au-yellow); }
.site-nav .nav-cta { background: var(--navy); color: var(--cream); margin-left: 6px; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current] { background: var(--eucalyptus); color: var(--cream); box-shadow: none; }
.nav-toggle { display: none; }
/* The full menu needs about 890px beside the 222px logo (with search, 2026-11-03),
   so below 1200px it folds into the ☰ menu. */
@media (max-width: 1199.98px) {
  .nav-wide { display: none; }
  .nav-toggle { display: block; position: static; }
  .nav-toggle summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 8px; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  /* Newer Chrome still lays out a closed <details>' contents, so the folded
     menu would push the page sideways on phones. */
  .nav-toggle:not([open]) .site-nav { display: none; }
  .nav-toggle summary span { display: block; width: 24px; height: 3px; background: var(--navy); border-radius: 2px; }
  .nav-toggle[open] .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
      flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(19,55,66,.08); }
  .nav-toggle[open] .nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ---- buttons ------------------------------------------------------- */
.btn { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 15px; text-decoration: none;
       padding: 12px 20px; border-radius: 999px; background: var(--au-yellow); color: var(--navy);
       border: 2px solid var(--au-yellow); cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--feather); border-color: var(--feather); color: var(--navy); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--eucalyptus); border-color: var(--eucalyptus); color: var(--cream); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn-sm { font-size: 13px; padding: 7px 13px; }
.btn-quiet { background: var(--cream); border-color: var(--line); }
.link-more { font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--navy); }
.link-more::after { content: " →"; }

/* Book covers are never rounded, anywhere (Simon, 2026-11-04). */
/* ---- hero & page heads -------------------------------------------- */
.hero { background: var(--cream); border-bottom: 1px solid var(--line); overflow: hidden; }
/* Kept compact (Simon, 2026-10-07): modest padding, tight paragraphs, a wide
   text column so the intro wraps onto fewer lines. */
/* Less room above the welcome (Simon, 2026-11-03): was 28px, 40px on wide screens. */
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 18px; padding-bottom: 32px; align-items: center; }
.hero .eyebrow { margin-bottom: 6px; }
.hero h1 { margin-bottom: .3em; }
/* Smaller (Simon, 2026-11-03) so the welcome doesn't crowd the covers. */
.hero .lede { font-size: 16px; margin-bottom: .55em; max-width: 68ch; }
.hero-actions { margin-top: 16px; margin-bottom: 0; }
.hero-fan { display: none; }
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.45fr 1fr; padding-top: 20px; padding-bottom: 40px; }
  /* Bigger covers (Simon, 2026-11-03): about a third larger than before, and
     still within the cover files' 345px width, so they stay sharp. */
  .hero-text { grid-column: 1; grid-row: 1; }
  .hero-fan { display: grid; grid-column: 2; grid-row: 1; justify-self: center; width: min(480px, 100%); height: 370px; position: relative; }
  /* Each cover keeps its own shape (never cropped), capped to a 250x340 box
     and standing on a common baseline. */
  /* Each cover is a link to its book (2026-11-10): the link is placed, the
     picture inside it sized. */
  .hero-fan > a { position: absolute; display: block; line-height: 0; }
  .hero-fan img { width: auto; height: auto; max-width: 250px; max-height: 340px;
                  box-shadow: 0 12px 28px rgba(19,55,66,.22); border: 4px solid var(--white); }
  .hero-fan > a:nth-child(1) { left: 0; bottom: 12px; transform: rotate(-8deg); }
  .hero-fan > a:nth-child(2) { right: 0; bottom: 12px; transform: rotate(7deg); }
  .hero-fan > a:nth-child(3) { left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; }
}
.eyebrow { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
           color: var(--eucalyptus); margin-bottom: 10px; }
.lede { font-size: 19px; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.page-head { background: var(--cream); border-bottom: 1px solid var(--line); padding: 34px 0 26px; }
.page-head h1 { position: relative; padding-bottom: 14px; }
.page-head h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 6px; background: var(--au-yellow); border-radius: 3px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.crumbs a { color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { font-family: var(--head); font-weight: 600; font-size: 13px; text-decoration: none; background: var(--white);
          border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

/* ---- tiles --------------------------------------------------------- */
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 28px; margin-bottom: 8px; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tiles-3 { grid-template-columns: repeat(3, 1fr); } }
/* Four in a row from 1200px: narrower, they wrapped to three or four lines and
   looked oddly tall (Simon, 2026-11-11, iPad Pro 13"); two by two below that. */
@media (min-width: 1200px) { .tiles:not(.tiles-3) { grid-template-columns: repeat(4, 1fr); } }
/* Tiles that end a page (Curriculum) need room before the newsletter band. */
.tiles-last { margin-bottom: 56px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 24px; border-radius: var(--radius); text-decoration: none;
        color: var(--navy); min-height: 150px; justify-content: flex-end; transition: transform .15s ease; }
.tile:hover { transform: translateY(-3px); color: var(--navy); }
.tile-k { font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.tile-h { font-family: var(--head); font-size: 22px; font-weight: 800; line-height: 1.15; }
.tile-p { font-size: 15px; }
/* Curriculum page: the year levels a little smaller, each kept whole, so
   they fit on one line on desktop (Simon, 2026-11-16). */
.tile-bands { font-size: 14px; }
.tile-bands > span { white-space: nowrap; }
.tile-yellow { background: var(--au-yellow); }
.tile-teal { background: var(--teal); }
.tile-blue { background: var(--blue); }
/* Navy text like the other tiles (Simon, 2026-11-04: the green was too light on yellow). */
.tile-feather { background: var(--feather); color: var(--navy); }
.tile-feather:hover { color: var(--navy); }
.tile-eucalyptus { background: var(--eucalyptus); color: var(--cream); }
.tile-eucalyptus:hover { color: var(--cream); }
/* Two by two on tablets (860-999px): no fixed height, so no empty band above
   the words (Simon, 2026-11-09). The fixed height keeps the row of four even
   on wider screens. */
@media (min-width: 860px) and (max-width: 999.98px) { .tile { min-height: 0; padding-top: 18px; padding-bottom: 20px; } }

/* ---- bands & shelves ------------------------------------------------- */
.band { padding-top: 40px; padding-bottom: 40px; }
.band-cream { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.band-head h2 { margin: 0; }
/* A scrolling row clips at its top edge too, so a tall cover lifted on hover
   lost its top (Simon, 2026-11-04): 10px of room above, taken back with a
   negative margin so nothing moves. */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 18px;
         overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 10px; margin-top: -10px; padding-bottom: 8px; }
.shelf .card { scroll-snap-align: start; }
/* Two books and the edge of a third on phones (Simon, 2026-11-04): was 62%, one and a bit. */
@media (max-width: 640px) { .shelf { grid-auto-columns: 45%; gap: 14px; } }
/* Desktop: five across, the rest a scroll away (Simon, 2026-11-17: trending
   can hold any number, latest shows ten). */
@media (min-width: 860px) { .shelf { grid-auto-columns: calc((100% - 4 * 18px) / 5); } }
/* Arrows on a row with more books than fit (site.js; Simon, 2026-11-17):
   phones showed no sign there was more to swipe to. */
.shelf-wrap { position: relative; }
/* Smaller and see-through, so it covers less of the cover behind it; solid
   on hover (Simon, 2026-11-17). Still a 44px target to tap: the ::before. */
.shelf-arrow { position: absolute; top: 34%; z-index: 3; width: 32px; height: 32px; border-radius: 50%;
               border: 0; background: rgba(255,255,255,.7); color: var(--navy); cursor: pointer;
               display: grid; place-items: center; padding: 0; box-shadow: 0 2px 8px rgba(19,55,66,.2);
               transition: background .2s; }
.shelf-arrow::before { content: ""; position: absolute; inset: -6px; }
.shelf-arrow svg { width: 16px; height: 16px; }
.shelf-arrow:hover { background: rgba(255,255,255,.95); }
.shelf-arrow:focus-visible { outline: 3px solid var(--au-yellow); outline-offset: 2px; }
.shelf-next { right: -6px; }
.shelf-prev { left: -6px; }
.shelf-arrow[hidden] { display: none; }
@media (max-width: 640px) { .shelf-next { right: 2px; } .shelf-prev { left: 2px; } }
.grid { display: grid; gap: 26px 18px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; } }
.empty { color: var(--muted); font-style: italic; }
.more { text-align: center; margin: 36px 0 8px; }

/* ---- book card ------------------------------------------------------- */
/* position: relative keeps each card's hidden screen-reader labels (.sr) inside
   the card; otherwise, in a sideways-scrolling shelf, they sit far off to the
   right of the page and make the whole page scroll sideways on phones. */
.card { display: flex; flex-direction: column; min-width: 0; position: relative; }
/* Covers are never cropped. Each card has the same 4:5 space so rows line
   up; the cover is scaled to fit inside it and sits on the bottom edge, like
   books on a shelf. 4:5 rather than 2:3 because about 40% of children's
   covers are square or landscape picture books, which would otherwise shrink
   to a sliver.
   Covers load from A&U's live cover store, so their shape isn't known in
   advance: the img fills the whole slot and object-fit draws the cover inside
   it, uncropped and on the bottom edge. A drop-shadow filter (not a
   box-shadow) follows the cover itself, not the empty part of the slot. */
/* min-height: 0 holds the space to 4:5: without it a tall cover stretched
   its space downwards and pushed its title below the others in the row
   (Simon, 2026-11-09). */
.cover { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 4 / 5; min-height: 0; }
.cover img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
             filter: drop-shadow(0 1px 1px rgba(19,55,66,.14)) drop-shadow(0 6px 10px rgba(19,55,66,.14));
             transition: transform .15s ease; }
.cover:hover img { transform: translateY(-3px); }
.cover-blank { display: grid; place-items: center; width: 80%; height: 100%; padding: 12px; text-align: center; background: var(--teal);
               font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 15px; }
.card-body { padding-top: 12px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 15px; margin: 0 0 2px; }
.card-title a { text-decoration: none; color: var(--navy); }
.card-title a:hover { text-decoration: underline; }
.card-author { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px;
       background: var(--cream); border: 1px solid var(--line); color: var(--muted); }
/* One button per line, Book details always last (it sat beside a lone
   button and under several; Simon, 2026-10-29). */
.card-actions { margin-top: auto; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.card-actions .link-more { font-size: 13px; margin-left: 2px; }

/* ---- filters --------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 14px; margin-bottom: 14px;
           background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.search { flex: 1 1 240px; }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); }
.search input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(240,186,69,.5); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 600 13px var(--head); padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
/* An on/off filter (Australian authors), set apart from the year chips. */
.chip-toggle { border-style: dashed; }
.chip-toggle[aria-pressed="true"] { border-style: solid; }
.chip-toggle[aria-pressed="true"]::before { content: "✓ "; }
.select { display: flex; align-items: center; gap: 8px; font: 600 13px var(--head); }
.select select { font: inherit; font-family: var(--body); font-size: 15px; padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--white); }
.toggle { font-size: 14px; display: flex; gap: 6px; align-items: center; }
.count { font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--muted); margin: 0 0 16px; }

/* ---- book list tiles ------------------------------------------------- */
.list-tiles { display: grid; gap: 18px; grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 40px; }
@media (min-width: 640px) { .list-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .list-tiles { grid-template-columns: repeat(3, 1fr); } }
.list-tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--navy); background: var(--cream);
             border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: transform .15s ease; }
.list-tile:hover { transform: translateY(-3px); color: var(--navy); border-color: var(--au-yellow); }
.collage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; min-height: 40px; }
.collage-cell { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 4 / 5; }
.collage img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
               filter: drop-shadow(0 3px 5px rgba(19,55,66,.16)); }
.list-tile-h { font-family: var(--head); font-weight: 800; font-size: 21px; }
.list-tile-p { font-size: 14px; color: var(--muted); }

/* ---- catalogues ------------------------------------------------------ */
.catalogues { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.catalogue { display: flex; flex-direction: column; gap: 10px; color: var(--navy); align-items: flex-start; }
.catalogue img { box-shadow: 0 8px 18px rgba(19,55,66,.15); }
.catalogue-t { font-family: var(--head); font-weight: 700; color: var(--navy); text-decoration: none; }
.catalogue-t:hover { text-decoration: underline; }
.catalogue-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.more-note { margin-top: 30px; }

/* ---- feature pages (one book's resources, learn/features.py) ---------- */
.feature-head { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: center; }
.feature-cover { width: 220px; height: auto; box-shadow: 0 10px 24px rgba(19,55,66,.2); }
/* A series logo (Simon, 2026-11-04): above the heading on phones, beside it
   on wider screens. Sized by its longer side, so wide and square logos both fit. */
.feature-logo { display: block; width: auto; height: auto; max-width: min(240px, 75%); max-height: 100px; order: -1; }
@media (min-width: 760px) {
  .feature-head { grid-template-columns: 1fr auto; }
  .feature-cover { width: 320px; }
  .feature-logo { order: 0; max-width: 320px; max-height: 170px; justify-self: end; }
}
.feature-section { margin-bottom: 36px; max-width: 820px; }
/* Book pages (Simon, 2026-11-04) */
/* The book as one block in the white section (Simon, 2026-11-04): cover on
   the left (kept in view while the resources scroll), details then the
   resources on the right; on phones the cover sits above. */
.book-main { display: grid; gap: 22px; align-items: start; }
.book-cover { max-width: 200px; }
.book-cover img { display: block; width: 100%; height: auto; box-shadow: 0 10px 24px rgba(19,55,66,.2); }   /* square corners (Simon, 2026-11-04) */
.book-cover .cover-blank { width: 100%; height: auto; aspect-ratio: 2 / 3; }
.book-body { min-width: 0; }
.next-step h2 { margin-top: 0; }
.next-step p:last-child { margin-bottom: 0; }
/* The newsletter page's "Want to discover more", with the home page's cover
   fan (Simon, 2026-11-12): the fan's sizes are the home page's .hero-fan;
   only its place is set here. */
.next-step-fan { display: grid; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) {
  .next-step-fan { grid-template-columns: 1.45fr 1fr; gap: 24px; }
  .next-step-text { grid-column: 1; grid-row: 1; }
  /* About two-thirds of the homepage fan, and less padding, so the band
     isn't huge (Simon, 2026-11-12). */
  .band:has(> .next-step-fan) { padding-top: 24px; padding-bottom: 24px; }
  .next-step-fan .hero-fan { width: min(330px, 100%); height: 250px; }
  .next-step-fan .hero-fan img { max-width: 170px; max-height: 230px; border-width: 3px;
                                 box-shadow: 0 8px 18px rgba(19,55,66,.22); }
  .next-step-fan .hero-fan > a:nth-child(1), .next-step-fan .hero-fan > a:nth-child(2) { bottom: 6px; }
  .next-step-fan .hero-fan > a:nth-child(3) { bottom: 16px; }
}
@media (max-width: 859.98px) {
  .next-step-fan { text-align: center; }
  .next-step-text { display: contents; }
  .next-step-fan h2 { order: 1; }
  .next-step-fan p { order: 2; }
  .next-step-fan .hero-fan { order: 3; }
  .next-step-fan .next-step-go { order: 4; margin-top: 4px; }
}
.book-crumbs { padding: 18px 0 0; background: none; border-bottom: 0; }   /* plain, on white (Simon, 2026-11-04) */
.book-crumbs .crumbs { margin: 0; }
.book-title { position: relative; margin: 0 0 14px; padding-bottom: 14px; }
.book-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 6px; background: var(--au-yellow); border-radius: 3px; }
.book-body > .lede { margin-top: 0; }
.book-author { font-family: var(--head); font-weight: 600; color: var(--muted, #5b676c); margin: 0 0 12px; }
/* Off-site links: a box-and-arrow after the words (Simon, 2026-11-04). */
.btn-external { display: inline-flex; align-items: center; gap: 8px; }
.icon-external { flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.book-facts { font-size: 14px; color: var(--muted, #5b676c); margin: 10px 0 0; }
.facts-au { display: none; }   /* phones only (see the phone rules) */
.book-resources { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.book-resources .feature-section:last-child { margin-bottom: 0; }
.book-related { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.book-related h2 { font-size: 20px; margin: 0 0 12px; }
.book-lists { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.book-lists a { display: inline-block; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px;
                font-family: var(--head); font-weight: 600; font-size: 14px; text-decoration: none; color: var(--navy); }
.book-lists a:hover { border-color: var(--navy); }
@media (min-width: 760px) {
  .book-main { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
  /* Kept in view 24px below the sticky site header (Simon, 2026-11-04);
     site.js sets --header-h to the header's real height at every width. */
  .book-cover { max-width: none; position: sticky; top: calc(var(--header-h, 135px) + 24px); }
}
.feature-section h2 { font-size: 22px; margin-bottom: 14px; }
.feature-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
/* Buttons, players and videos in one section: a gap between each (Simon, 2026-11-03) */
.feature-section-body > :not(h2) + :not(h2) { margin-top: 18px; }
.feature-details { margin: -6px 0 0; }   /* Book details, just under its title */
/* A series page: each book's cover beside its section (Simon, 2026-11-04). */
.feature-section.with-cover { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; }
.feature-section-cover { display: block; }
.feature-section-cover img { display: block; width: 100%; height: auto;
                             filter: drop-shadow(0 1px 1px rgba(19,55,66,.14)) drop-shadow(0 6px 10px rgba(19,55,66,.14)); }
.feature-section-cover .cover-blank { width: 100%; height: auto; aspect-ratio: 4 / 5; font-size: 12px; padding: 8px; }
@media (min-width: 640px) {
  .feature-section.with-cover { grid-template-columns: 130px minmax(0, 1fr); gap: 28px; max-width: 980px; }
}
.feature-audio { display: block; width: 100%; height: 166px; border: 0; }
.feature-video { position: relative; aspect-ratio: 16 / 9; }
.feature-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }

/* ---- newsletter ------------------------------------------------------ */
.signup { background: var(--au-yellow); }
.signup-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 34px; padding-bottom: 34px; }
.signup h2 { margin-bottom: 6px; }
.signup p { margin: 0; max-width: 60ch; }
/* The Klaviyo form draws its own fields; this only sets its width. */
/* Less room around the form on the Newsletter page (Simon, 2026-11-09: was
   40px each side). Klaviyo adds about 20px of its own inside the form. */
.signup-band { padding-top: 16px; padding-bottom: 20px; }
.signup-form { max-width: 560px; }
.prose { max-width: 760px; }

/* ---- about ------------------------------------------------------------ */
/* Kept compact (Simon, 2026-10-07): modest padding, wide text column, tight
   paragraphs. */
.about { padding: 32px 0; }
.about-learn { background: var(--cream); border-bottom: 1px solid var(--line); }  /* as the home page hero */
.about-au { background: var(--white); }
.about-inner { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .about-inner { grid-template-columns: 1fr 300px; gap: 40px; } }
.about-text.prose { max-width: none; }
.about-text h1, .about-text h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: .35em; }
.about-text p { font-size: 17px; margin-bottom: .6em; }
.about-text p:last-child { margin-bottom: 0; }
.about-learn .about-text, .about-learn .about-text h1 { color: var(--navy); }
.about-logo { justify-self: center; height: auto; }
.about-logo-learn { width: 140px; }
/* Colour logo with tagline (Simon's file, 2026-10-07). The guidelines allow
   the colour logo on white only, with ~300px as its smallest digital width. */
.about-logo-au { width: 300px; max-width: 100%; }
@media (max-width: 859.98px) {
  .about-logo { order: -1; }
  .about-logo-learn { width: 90px; }  /* above the text on phones, so kept small */
}

/* ---- footer ---------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--cream); padding: 40px 0 18px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--feather); }
.footer-inner { display: grid; gap: 28px; grid-template-columns: 1fr; }
/* Logo beside the links only when all three link columns still fit on one
   line next to it; narrower, the logo sits above them. */
@media (min-width: 1140px) { .footer-inner { grid-template-columns: 1fr 2fr; } }
.footer-brand img { width: 230px; }
/* Columns are as wide as their content and the spare width is shared equally
   between them, so the gaps between columns match (equal-width columns
   left uneven gaps, because the headings differ in length). */
.footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px 48px; }
.footer-cols h3 { color: var(--au-yellow); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.footer-cols a { display: block; padding: 3px 0; font-size: 15px; }
.footer-small { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; opacity: .8; margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(254,253,233,.2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }


/* "Paperback, 2018": only on books showing more than one edition (config.ALL_EDITIONS). */
.card-edition { font-size: 13px; color: var(--muted); margin: -2px 0 8px; }

/* In-page jump links (CBCA categories): the heading lands just below the
   sticky header, whose height site.js measures into --header-h. */
.jump-target { scroll-margin-top: calc(var(--header-h, 140px) + 16px); }

/* "Back to top" on the CBCA page, once the category buttons are out of view. */
/* Bottom centre, with a strong shadow so it stands out (Simon, 2026-11-03). */
.to-top { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30;
          background: var(--teal); color: var(--navy); font: 700 16px var(--head); text-decoration: none;
          padding: 14px 28px; border-radius: 999px; white-space: nowrap;
          box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.2); }
/* Teal with navy text, as the home page's Book Lists tile (Simon, 2026-11-03: navy was too dark). */
.to-top:hover, .to-top:focus-visible { background: #8ccbca; color: var(--navy); }
.to-top[hidden] { display: none; }

/* ---- phones (Simon, 2026-11-03: mobile usability pass) ------------------
   Measured at 375 and 320px: the Categories drop-down and the Contact email
   button ran off the screen, small links were 18-29px tall, and on the list
   pages the first books started below the bottom of a small phone. */
.select { min-width: 0; }                                 /* a flex item may shrink below its longest option */
.select select { max-width: 100%; min-width: 0; }          /* never wider than its box */
.btn { max-width: 100%; overflow-wrap: anywhere; }         /* a long email address wraps */
@media (max-width: 699.98px) {
  .header-inner { height: 88px; }                          /* the sticky bar was 118px */
  .brand img { height: 68px; }                             /* bigger (Simon, 2026-11-04): was 58px */
  .page-head { padding: 18px 0 16px; }
  .page-head .crumbs { margin-bottom: 8px; }
  .page-head .crumbs + .eyebrow { display: none; }         /* the breadcrumb already says it */
  .lede { font-size: 17px; }
  .filters { padding: 12px; gap: 10px 12px; }
  .select-wide { flex: 1 1 100%; }                         /* Categories: a full row of its own */
  .select-wide select { flex: 1; width: 100%; }
  .select select { font-size: 16px; }                      /* under 16px, iPhones zoom the page in on tap */
  .link-more { display: inline-block; padding: 9px 0; }    /* tap areas of 40px or so */
  .crumbs a { display: inline-block; padding: 6px 0; }
  .footer-cols a { padding: 9px 0; }
  .footer-small a { display: inline-block; padding: 10px 0; }
}

/* Book search: a magnifying glass in the header opens a panel under it
   (Simon, 2026-11-03). On desktop it sits after Catalogues; on phones and
   tablets, beside the menu button. */
.search-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px;
                 background: none; color: var(--navy); cursor: pointer; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { background: var(--cream); box-shadow: inset 0 -3px 0 var(--au-yellow); }
.header-tools { display: flex; align-items: center; gap: 4px; }
.search-toggle-small { display: none; }
@media (max-width: 1199.98px) { .search-toggle-small { display: grid; } }
.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line);
                box-shadow: 0 14px 28px rgba(19,55,66,.14); max-height: calc(100vh - var(--header-h, 140px));
                overflow-y: auto; padding: 16px 0 20px; }
.search-panel[hidden] { display: none; }
.search-form { display: flex; gap: 8px; align-items: center; max-width: 720px; margin: 0 auto; }
.search-form input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 12px 18px; border-radius: 999px;
                     border: 1.5px solid var(--navy); background: var(--white); }
.search-form input:focus { outline: none; box-shadow: 0 0 0 3px rgba(240,186,69,.6); }
.search-close { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--cream);
                color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer; }
.search-close:hover { background: var(--line); }
.search-results { margin-top: 18px; }
/* Pages in the search results, above the books. */
.search-head { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--eucalyptus); margin: 0 0 8px; }
.search-pages ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.search-page { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
               background: var(--cream); text-decoration: none; color: var(--ink); }
.search-page-text { display: grid; gap: 2px; }
.search-page strong { font-family: var(--head); color: var(--navy); font-size: 16px; }
.search-page-text > span { font-size: 14px; color: var(--muted); }
.search-page.with-cover { grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.search-page.with-cover img { width: 52px; height: 72px; object-fit: contain; object-position: center;
                              box-shadow: 0 3px 8px rgba(19,55,66,.18); }
.search-page:hover, .search-page:focus-visible { border-color: var(--navy); }
/* The ISBN on search result cards (Simon, 2026-11-03). */
.card-isbn { font-size: 13px; color: var(--muted); margin: -4px 0 10px; font-variant-numeric: tabular-nums; }
/* Series feature pages: the books' covers in a row under the heading. */
.feature-series { list-style: none; margin: 22px 0 4px; padding: 0; display: grid; gap: 18px;
                  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.feature-series a { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.feature-series img, .feature-series .cover-blank { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; object-position: left bottom; }
.feature-series strong { font-family: var(--head); font-size: 15px; color: var(--navy); line-height: 1.25; }
.feature-series a > span:not(.sr):not(.cover-blank) { font-size: 13px; color: var(--muted); }
.feature-series a:hover strong { text-decoration: underline; }
@media (max-width: 699.98px) { .feature-series { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- phones, second pass (Simon, 2026-11-04) ----------------------------- */
/* A 320px phone has room for a 60px logo beside the search and menu buttons. */
@media (max-width: 359.98px) { .brand img { height: 60px; } }

/* Home page: the cover fan, full width between the welcome's first and
   second paragraphs (Simon, 2026-11-04; it was hidden below 860px, then too
   small beside the heading). The welcome's parts and the fan are put in
   order with CSS, so the markup stays as on desktop. */
@media (max-width: 859.98px) {
  .hero-inner { gap: 0; }
  .hero-text { display: contents; }
  .hero-text > * { order: 4; }
  .hero h1 { order: 1; }
  .hero .lede:first-of-type { order: 2; }
  .hero-fan { order: 3; }
  .hero-fan img { width: auto; height: auto; box-shadow: 0 8px 18px rgba(19,55,66,.22); border: 3px solid var(--white); }
}
/* Phones and narrow tablets alike, up to 859px (Simon, 2026-11-09: 700-859px
   showed the tablet welcome; it now matches phones). */
@media (max-width: 859.98px) {
  /* A smaller welcome, smaller buttons and the four tiles two by two, so the
     latest resources start on the first screen. */
  .hero-inner { padding-top: 14px; padding-bottom: 20px; }
  .hero h1 { font-size: 30px; }                            /* was 26px (Simon, 2026-11-04) */
  .hero .lede { font-size: 16px; line-height: 1.5; }        /* 14px was too small (Simon, 2026-11-04) */
  /* Only the welcome's first sentence, everything centred, and the fan
     between the sentence and the buttons (Simon, 2026-11-04). */
  /* The covers side by side and overlapping, rather than placed in a fixed
     box: the fan is only as tall as its tallest cover, so square picture
     books leave no gap above it (Simon, 2026-11-04). */
  .hero-fan { display: flex; justify-content: center; align-items: flex-end; width: 100%; height: auto;
              margin: 16px 0 8px; padding-bottom: 8px; }   /* 16px above: was 6px (Simon, 2026-11-09) */
  .hero-fan > a, .hero-fan > a:nth-child(n) { position: relative; left: auto; right: auto; bottom: auto; }
  .hero-fan img { max-width: 146px; max-height: 204px; }   /* bigger (Simon, 2026-11-09): was 128x180 */
  .hero-fan > a:nth-child(1) { order: 1; margin-right: -48px; transform: rotate(-8deg); }
  .hero-fan > a:nth-child(3) { order: 2; transform: translateY(-8px); z-index: 2; }
  .hero-fan > a:nth-child(2) { order: 3; margin-left: -48px; transform: rotate(7deg); }
  .hero h1, .hero .lede { text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }    /* the 68ch-wide box centred too, for tablets (Simon, 2026-11-09) */
  .hero-actions { justify-content: center; }
  .hero .lede-extra, .hero .lede-more { display: none; }

  .hero-actions { gap: 8px; margin-top: 12px; }
  .hero-actions .btn { font-size: 14px; padding: 9px 16px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .tile { min-height: 64px; padding: 12px 14px; justify-content: center; }
  .tile-h { font-size: 16px; }
  .tile-k { font-size: 11px; }                             /* the small label stays on tablets (Simon, 2026-11-09) */
  .tile-p { font-size: 14px; }                             /* the line under the name stays on tablets (Simon, 2026-11-09) */
  .tiles + .band { padding-top: 24px; }
  .tiles + .band .band-head { margin-bottom: 12px; }
  .band-head { row-gap: 0; }                               /* "See all …" right under its heading when it wraps (Simon, 2026-11-09) */
}
/* Tablets have the room for a bigger fan (Simon, 2026-11-09). */
@media (min-width: 700px) and (max-width: 859.98px) {
  .hero-fan { margin-top: 20px; }
  .hero-fan img { max-width: 200px; max-height: 280px; }
  .hero-fan > a:nth-child(1) { margin-right: -64px; }
  .hero-fan > a:nth-child(2) { margin-left: -64px; }
  .hero-fan > a:nth-child(3) { transform: translateY(-12px); }
}
@media (max-width: 699.98px) {
  .tile-k, .tile-p { display: none; }                      /* phones: the buttons show only their names */

  /* Book pages: the cover closer to the breadcrumb (was 64px apart). */
  .page-head.book-crumbs { padding-bottom: 0; }
  .book-main.band { padding-top: 14px; }

  /* A shorter footer: a smaller logo, the two link lists side by side, the
     social links on one line, and less space between links (Simon,
     2026-11-09: closer again; each link is still about 29px to tap, above
     the 24px accessibility minimum). */
  .site-footer { padding: 26px 0 12px; }
  .footer-inner { gap: 20px; }
  .footer-brand { order: 1; text-align: left; }            /* under the links (Simon, 2026-11-04); on the left (2026-11-11; was centred) */
  .footer-brand img { width: 170px; height: auto; margin: 0; }
  .footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .footer-cols > div:last-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; column-gap: 20px; }
  .footer-cols > div:last-child h3 { flex-basis: 100%; }
  .footer-cols h3 { margin-bottom: 4px; }
  .footer-cols a { padding: 3px 0; line-height: 1.5; }
  .footer-small { gap: 4px 16px; margin-top: 18px; padding-top: 8px; align-items: center; justify-content: center; }
  .footer-small a { padding: 7px 0; }
}
/* Last, so it wins over the 699px rules: the fan on 320px phones. */
@media (max-width: 359.98px) {
  .hero-fan img { max-width: 124px; max-height: 174px; }
}

/* Book pages' rows of covers ("Also in the series", "More books by"): every
   cover the same height and each book exactly as wide as its cover, so the
   gaps between books are all the same (Simon, 2026-11-09: in equal-width
   columns a narrow cover left extra space beside it). The title and author
   wrap to the cover's width. */
.feature-series.book-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 26px; margin-top: 0; }
.book-row a { grid-template-columns: min-content; }
.book-row img { width: auto; height: 180px; aspect-ratio: auto; max-width: none; }
.book-row .cover-blank { width: 120px; height: 180px; aspect-ratio: auto; }
@media (max-width: 699.98px) {
  .feature-series.book-row { gap: 20px 18px; }
  .book-row img { height: 150px; }
  .book-row .cover-blank { width: 100px; height: 150px; }
}

/* Rows of book cards (Simon, 2026-11-09): every cover is the full width of
   its card, so the gaps between books are equal and each title starts at its
   cover's left edge; and in each row the covers stand on one line, like books
   on a shelf, in a space as tall as that row's tallest cover, so every title
   starts on one line too. Each card's cover and text take one row each of the
   row's shared grid (subgrid). The buttons stay at the bottom of the card.
   A browser without subgrid shows each cover in the 4:5 space instead. */
@supports (grid-template-rows: subgrid) {
  .shelf .card, .grid .card { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; }
  .shelf .cover, .grid .cover { aspect-ratio: auto; }
  .shelf .cover img, .grid .cover img { height: auto; aspect-ratio: auto 2 / 3; }   /* a book's shape until it loads, then its own (2026-11-11) */
  .shelf .cover-blank, .grid .cover-blank { width: 100%; height: auto; aspect-ratio: 2 / 3; }
}

/* Homepage buttons on desktop, a row of four (Simon, 2026-11-09): the words
   start at the top of every button, so the small labels and the names each
   start on one line across the row, and each line sits straight under its
   own name (lining the lines up too left a gap under one-line names, and
   shrinking the names to fit one line made them too small). */
@media (min-width: 1000px) {
  .tile { justify-content: flex-start; min-height: 0; padding-top: 22px; padding-bottom: 26px; }
}

/* Book lists: up to three covers in the heading, chosen in the admin (Simon,
   2026-11-10). Like the homepage fan, smaller: beside the heading on wide
   screens, under it, centred and overlapping, on phones and tablets. Each
   cover keeps its own shape and links to its book. */
.head-fan { display: flex; justify-content: center; align-items: flex-end; margin-top: 18px; }
.head-fan a { display: block; flex: none; transition: transform .15s; }
.head-fan img { display: block; width: auto; height: auto; max-width: 120px; max-height: 168px;
                box-shadow: 0 8px 18px rgba(19,55,66,.22); border: 3px solid var(--white); background: var(--white); }
.head-fan.n2 a:first-child, .head-fan.n3 a:first-child { transform: rotate(-7deg); margin-right: -34px; }
.head-fan.n2 a:last-child, .head-fan.n3 a:last-child { transform: rotate(6deg); margin-left: -34px; }
.head-fan a.front { position: relative; z-index: 2; transform: translateY(-8px); }
.head-fan a:hover img { box-shadow: 0 12px 26px rgba(19,55,66,.32); }
@media (min-width: 700px) {
  .head-fan img { max-width: 150px; max-height: 210px; }
  .head-fan.n2 a:first-child, .head-fan.n3 a:first-child { margin-right: -44px; }
  .head-fan.n2 a:last-child, .head-fan.n3 a:last-child { margin-left: -44px; }
}
@media (min-width: 860px) {
  .head-inner { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px; align-items: center; }
  .head-fan { margin-top: 0; padding: 8px 0; }
  .head-fan img { max-width: 170px; max-height: 236px; border-width: 4px; }
  .head-fan.n2 a:first-child, .head-fan.n3 a:first-child { margin-right: -50px; }
  .head-fan.n2 a:last-child, .head-fan.n3 a:last-child { margin-left: -50px; }
  .head-fan a.front { transform: translateY(-14px); }
}

/* Homepage fan covers are links (2026-11-10): a lift on hover, a focus ring. */
.hero-fan > a:hover img { box-shadow: 0 16px 34px rgba(19,55,66,.32); }
.hero-fan > a:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }

/* Book pages (Simon, 2026-11-11): the downloads straight under the
   description, and the Allen & Unwin page a quieter link after them. */
.book-main .book-resources { margin-top: 22px; padding-top: 18px; }
.book-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 14px 0 0; }   /* above the downloads (2026-11-11) */
.book-learn-more { font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--navy); }
.book-learn-more svg { width: 14px; height: 14px; margin-left: 5px; vertical-align: -2px; }   /* the icon stays with the last word */
/* A download's type and size, small, under its words. */
.btn.btn-sized { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.2; gap: 1px; }
.btn-size { font-family: var(--body, inherit); font-weight: 400; font-size: 12px; opacity: .8; }

/* Book pages: "Part of the … series →" under the author (2026-11-11). */
.book-series { margin: -6px 0 14px; font-family: var(--head); font-weight: 600; font-size: 15px; }
.book-series a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--au-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.book-series a:hover { text-decoration-color: var(--navy); }

/* --- Phones (Simon, 2026-11-11) ------------------------------------------ */
/* 2. The menu icon becomes a cross while the menu is open. */
.nav-toggle summary span { transition: transform .2s, opacity .2s; }
.nav-toggle[open] summary span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[open] summary span:nth-child(2) { opacity: 0; }
.nav-toggle[open] summary span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* 5. The header tucks away while scrolling down, and comes back on the way up. */
.site-header { transition: transform .25s ease; }
@media (max-width: 859.98px) {
  .site-header.is-tucked { transform: translateY(-100%); }
}
/* 7. Newsletter fallback. */
.signup-fallback { margin: 12px 0 0; font-size: 15px; }
@media (max-width: 699.98px) {
  /* 3. Book pages: the cover small, beside the title, author and series, so
     the downloads start on the first screen. */
  .book-main { grid-template-columns: 140px minmax(0, 1fr); column-gap: 16px; row-gap: 0; }   /* was 104px: too small (Simon, 2026-11-11) */
  .book-body { display: contents; }
  .book-body > * { grid-column: 1 / -1; }
  /* The title across the top, then the cover beside the author and series
     (Simon, 2026-11-11: a long title squeezed beside the cover took four lines). */
  .book-title { grid-column: 1 / -1; grid-row: 1; }
  .book-cover { grid-column: 1; grid-row: 2 / span 2; max-width: none; align-self: start; margin-bottom: 4px; }
  .book-cover img { box-shadow: 0 6px 14px rgba(19,55,66,.2); }
  .book-author, .book-series { grid-column: 2; }
  .book-title { font-size: 24px; line-height: 1.15; margin-bottom: 10px; padding-bottom: 10px; }
  .book-title::after { width: 48px; height: 5px; }
  .book-author { font-size: 14px; margin-bottom: 8px; }
  .book-series { font-size: 14px; margin: 0 0 10px; }
  .book-body > .lede { margin-top: 14px; font-size: 15.5px; line-height: 1.55; }   /* a little smaller on phones (2026-11-11) */
  /* A long keynote shows four lines and "Read more" (site.js). */
  .book-body > .lede.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; margin-bottom: 4px; }
  .lede-more-btn { grid-column: 1 / -1; justify-self: start; background: none; border: 0; padding: 6px 0; cursor: pointer;
                   font-family: var(--body, inherit); font-weight: 600; font-size: 14px; color: var(--muted, #5b676c); text-decoration: none; }
  .lede-more-btn span { font-size: 12px; margin-left: 2px; }
  /* The A&U link: on the ISBN line on phones, not on its own. */
  .book-more { display: none; }
  .facts-au { display: inline; }
  .facts-au a { color: var(--navy); font-weight: 600; }
  .facts-au svg { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; }
  .book-facts { margin-top: 14px; }
  /* 4. Search: matching pages as compact one-line links, so books show sooner. */
  .search-page, .search-page.with-cover { display: block; padding: 9px 12px; }
  .search-page img, .search-page-text > span { display: none; }
  .search-page strong { font-size: 15px; }
  .search-pages ul { gap: 6px; margin-bottom: 14px; }
  /* 6. Card buttons easier to tap, their words on one line. */
  .card-actions .btn-sm { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 11px; font-size: 12.5px; line-height: 1.2; }
}

/* Phones: book and series page download buttons smaller (Simon, 2026-11-11:
   "way too big"); still about 40px tall to tap. */
@media (max-width: 699.98px) {
  .feature-links { gap: 8px; }
  .feature-links .btn { font-size: 13px; padding: 7px 14px; line-height: 1.2; border-radius: 14px; min-height: 38px; }
  .feature-links .btn:not(.btn-sized) { display: inline-flex; align-items: center; }
  .feature-links .btn-size { font-size: 10.5px; }
}

/* Search: each page result tagged with its kind (Simon, 2026-11-11). */
.search-page-text > span.search-page-type { justify-self: start; font-family: var(--head); font-weight: 700; font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--cream); border: 1px solid var(--line);
  border-radius: 999px; padding: 1px 8px; }
@media (max-width: 699.98px) {
  .search-page-text > span.search-page-type { display: inline-block; margin-bottom: 3px; }
}

/* Series pages on phones (Simon, 2026-11-11: buttons very big, covers very
   small): a bigger cover beside the book's title and Book details, and the
   download buttons across the full width underneath, so their words fit. */
@media (max-width: 699.98px) {
  .feature-section.with-cover { grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; row-gap: 0; }
  .feature-section.with-cover .feature-section-body { display: contents; }
  .feature-section.with-cover .feature-section-cover { grid-column: 1; grid-row: 1 / span 2; }
  .feature-section.with-cover h2, .feature-section.with-cover .feature-details { grid-column: 2; }
  .feature-section.with-cover h2 { font-size: 19px; line-height: 1.25; margin: 0 0 8px; }
  .feature-section.with-cover .feature-details { margin: 0; align-self: start; }
  .feature-section.with-cover .feature-section-body > :not(h2):not(.feature-details) { grid-column: 1 / -1; margin-top: 14px; }
}

/* Series pages on phones: the breadcrumb first, then the logo just above the
   heading it belongs to (Simon, 2026-11-11: above the breadcrumb it looked
   odd). */
@media (max-width: 699.98px) {
  /* ... and then beside the heading, on its right as on wider screens
     (Simon, 2026-11-11). */
  .feature-head { grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 0; }
  .feature-head > div { display: contents; }
  .feature-head .crumbs { grid-column: 1 / -1; }
  .feature-head h1 { grid-column: 1; }
  .feature-head .feature-logo { grid-column: 2; grid-row: 2; align-self: center; justify-self: end;
                                max-height: 84px; max-width: 96px; margin: 0 0 14px; }
  .feature-head > div > :not(.crumbs):not(h1), .feature-head .feature-cover { grid-column: 1 / -1; }
}

/* --- Tablets (Simon, 2026-11-11) ---------------------------------------- */
/* Touch screens of any width (iPads either way round): bigger tap targets.
   Laptops and desktops with a mouse are unchanged. */
@media (pointer: coarse) {
  /* 1. Book card buttons about 40px tall. */
  .card-actions .btn-sm { min-height: 40px; display: inline-flex; align-items: center; }
  /* 3. The breadcrumb and "Book details" a little bigger, with room around them. */
  .crumbs { font-size: 15px; }
  .crumbs a { display: inline-block; padding: 8px 0; }
  .link-more { font-size: 15px; display: inline-block; padding: 8px 0; }
  .card-actions .link-more { font-size: 14px; padding: 9px 0; }
}
/* 2. Series pages on tablets: bigger covers, and download buttons compact
   enough to sit two side by side. */
@media (min-width: 700px) and (max-width: 1199.98px) {
  .feature-section.with-cover { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  /* Each button as wide as its words, side by side as they fit (Simon,
     2026-11-11: stretched to half the width each they looked too wide). */
  .feature-section.with-cover .feature-links { display: flex; flex-wrap: wrap; gap: 10px; }
  .feature-links .btn { font-size: 14px; padding: 9px 16px; border-radius: 16px; }
  .feature-links .btn-size { font-size: 11px; }
}

/* The PDF opener (/open), when it shows the file on the page (2026-11-11). */
.open-file .open-frame { display: block; width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: 8px; margin-top: 12px; }

/* Series pages on tablets: the logo in from the right-hand edge (Simon, 2026-11-11). */
@media (min-width: 760px) and (max-width: 1199.98px) {
  .feature-logo { margin-right: 32px; max-height: 150px; }
}

/* A button with one line of words, beside two-line ones, keeps its words in
   the middle (Simon, 2026-11-11). Links show their website as a second line. */
.feature-links .btn:not(.btn-sized) { display: inline-flex; align-items: center; }
.feature-links .btn.btn-sized { justify-content: center; }

/* Book pages on phones: less space above and below the breadcrumb (Simon,
   2026-11-11). Its links keep their tap room; the margin takes it back. */
@media (max-width: 699.98px) {
  .page-head.book-crumbs { padding-top: 8px; }
  .book-crumbs .crumbs { margin: -6px 0; }
  .book-main.band { padding-top: 10px; }
}

/* Series pages on phones: the same tighter breadcrumb as book pages (Simon, 2026-11-11). */
@media (max-width: 699.98px) {
  .page-head.series-head { padding-top: 8px; }
  .series-head .crumbs { margin: -6px 0 2px; }
}

/* Book pages on phones: author and series line together at the top beside the
   cover, any spare height below them (Simon, 2026-11-11: on Astrid the series
   line floated with space above and below). */
@media (max-width: 699.98px) {
  .book-main { grid-template-rows: auto auto 1fr; }
  .book-author, .book-series { align-self: start; }
}

/* Series pages on phones: a book's title and "Book details" together at the
   top beside its cover, any spare height below them (Simon, 2026-11-11). */
@media (max-width: 699.98px) {
  .feature-section.with-cover { grid-template-rows: auto 1fr; }
  .feature-section.with-cover h2, .feature-section.with-cover .feature-details { align-self: start; }
}

/* Series page covers keep a book's shape until they load, then their own
   (2026-11-11), like the card covers: no jump as they arrive. */
.feature-section-cover img { aspect-ratio: auto 2 / 3; }
