/* ==========================================================================
   site.css — one design layer for the whole site. 3 December 2026.

   The site grew in separate pieces (styles.css for the home page, pages.css
   for inner pages, enhance.css for dark mode and accessibility, sheets.css
   for revision sheets, plus <style> blocks inside pages). Each piece set its
   own spacing, card style and badges. This file is loaded LAST on every page
   and sets the shared rules once:

     1. one spacing scale, with much more room between sections;
     2. one card style;
     3. a readable line length and line height for body text;
     4. no "Open now" / "Live" / "New" pills anywhere;
     5. one slim promo strip, never two banners stacked.

   It only uses the colour variables the themes already define, so light,
   dark and the reading preferences keep working.
   ========================================================================== */

:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-section: clamp(72px, 9vw, 120px);
  --radius: 14px;
  --measure: 66ch;
  --card-pad: clamp(20px, 2.4vw, 28px);
  --card-gap: clamp(16px, 2vw, 24px);
}

/* ---------- 1. Body text: calmer and easier to read ---------- */

body { line-height: 1.65; }
main p, main li { max-width: var(--measure); }
main .card-grid p, main .subject-grid p, main [class*="card"] p, main [class*="card"] li { max-width: none; }
main h2 { margin: 0 0 var(--space-2); line-height: 1.2; }
main h3 { line-height: 1.3; }
.page-hero .lede, .hero__lead { max-width: 52ch; }

/* ---------- 2. Space between sections ---------- */

main > section + section,
main > section + .site-footer,
main > .page-section + .section-wrap,
.site-shell > section + section { margin-top: var(--space-section); }

.section-wrap, .page-section, .subject-entry, .cam-home, .intro, .gallery,
.workbook-promo, .app-showcase, .cta-band { padding-top: 0; padding-bottom: 0; }

.page-hero { padding-top: var(--space-5); padding-bottom: 0; }
.page-hero h1 { margin-bottom: var(--space-2); }
.page-hero .hero__actions, .hero__actions { margin-top: var(--space-4); gap: var(--space-2) var(--space-3); }
.section-kicker, .eyebrow { margin-bottom: var(--space-1); }
main h2 + p, main h2 + ul, main h2 + .card-grid { margin-top: var(--space-2); }
.card-grid, .subject-grid { margin-top: var(--space-4); gap: var(--card-gap); }

/* Bands that sit full width keep their own background but get the same room inside. */
.app-showcase, .cta-band { padding-top: var(--space-5); padding-bottom: var(--space-5); }

.site-footer { margin-top: var(--space-section); }

/* ---------- 3. One card style ---------- */

.topic-card, .subject-card, .overview-card, .feature, .cam-home__grid li,
.download-card, .faq-item, .price-card, .sheet-card {
  border-radius: var(--radius);
}
.topic-card, .subject-card, .feature, .cam-home__grid li {
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-left-width: 1px;
  background: var(--white);
  box-shadow: none;
}
/* The accent is a thin bar along the top, the same on every card. */
.topic-card, .feature, .cam-home__grid li { border-top: 3px solid var(--green); }
.subject-card { border-top: 3px solid var(--card-accent, var(--green)); }
.topic-card h3, .subject-card h3, .feature h3 { margin: 0 0 var(--space-1); }
.topic-card p + p, .subject-card p + p { margin-top: var(--space-1); }
a.topic-card:hover, a.subject-card:hover { transform: translateY(-2px); }

/* ---------- 4. No status pills ---------- */

.badge--live, .cam-badge, .badge--soon, .live-dot { display: none !important; }

/* ---------- 5. One promo strip ---------- */

.workbook-strip__inner { padding-top: 10px; padding-bottom: 10px; }
.workbook-strip__text { font-size: 0.95rem; }
/* Cambridge pages had a second banner under the strip saying the same thing. */
.cambridge-banner { display: none !important; }

/* ---------- Topic (lesson) pages ---------- */

.video-explainer { line-height: 1.75; }
.video-explainer h3 { margin-top: var(--space-5); }
.video-explainer p + p { margin-top: var(--space-2); }
.video-explainer, .video-content-band { margin-top: var(--space-5); }
.video-explainer__examiner { margin: var(--space-5) 0; padding: var(--card-pad); border-radius: var(--radius); }
.video-content-grid { gap: var(--space-5); }

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  :root { --space-section: 64px; }
  .page-hero { padding-top: var(--space-4); }
  .hero__shot { display: none; }          /* phone mock-up pushed the subjects off screen */
}

.section-note { margin-top: var(--space-4); color: var(--muted); }
.subject-card p { font-size: 1.02rem; }
.app-showcase .tick-list li + li { margin-top: var(--space-1); }
.gallery__head { margin-bottom: var(--space-4); }

/* ---------- Additions for the full roll-out ---------- */

/* Menu stays on one line on a laptop. */
@media (min-width: 1000px) {
  .page-nav { flex-wrap: nowrap; gap: 18px; white-space: nowrap; }
}

/* App-page cards use the same card as everywhere else. */
.overview-mini {
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: none;
}
.overview-mini h3 { margin: 0 0 var(--space-1); }
.overview-mini p { margin: 0; color: var(--muted); }
.card-grid--two { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Short numbered steps. */
ol.steps { padding-left: 1.3em; margin: var(--space-3) 0 0; }
ol.steps li { padding-left: 4px; }
ol.steps li + li { margin-top: var(--space-2); }

/* Lesson pages: checklist first, the examiner note folds away. */
.video-sequence { margin-top: var(--space-4); }
.video-content-band { margin-top: var(--space-5); }
.video-content-band + .video-explainer { margin-top: var(--space-5); }
.site-shell > .video-page-hero + .video-stage, main > .video-page-hero + .video-stage { margin-top: var(--space-4); }
details.video-explainer__examiner > summary {
  cursor: pointer;
  font-weight: 700;
  list-style-position: outside;
}
details.video-explainer__examiner[open] > summary { margin-bottom: var(--space-2); }
.tip-note { margin-top: var(--space-3); }
.cta-band__actions { gap: var(--space-2) var(--space-3); }
