/* MoM 2027 guides. One stylesheet, two media: screen = the interactive scrolling page, print = the A4 PDF.
   Brand: MoM Fresh v1.1. Teal marks (details only), Blue moves, Gold crowns. No highlighter behind words.
   Round 2 (Andy, 20 Nov): less "Word document": pictures from our own films, number tiles, cards, a picture
   timeline, one blue statement page, checklists on a page of their own, key phrases in deep teal, live links. */
:root {
  --white: #FFFFFF; --mist: #F4F5F8; --line: #E6E7EB; --line-soft: #EEF0F3;
  --ink: #17181C; --ink-2: #3C3E45; --muted: #5B5E66; --faint: #70737C;
  --teal: #1DBFBB; --teal-deep: #0B6E6A; --teal-tint: #E3F7F6;
  --blue: #4F4FE0; --blue-hover: #3A3AC4; --blue-shape: #7878FF;
  --gold: #FFAB47; --gold-tint: #FFF2E0; --gold-ink: #8A5A12; --red: #B83232;
  --font: Poppins, Verdana, system-ui, sans-serif;
  --r-card: 18px; --r-field: 12px; --r-pill: 999px;
  --text-w: 700px; --wide-w: 1040px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink-2); font: 400 17px/1.65 var(--font); text-wrap: pretty; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; margin: 0; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
b, strong { color: var(--ink); font-weight: 600; }
strong.key { color: var(--teal-deep); font-weight: 700; }
img { max-width: 100%; }

.label { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }
.label::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--teal); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 0; border-radius: var(--r-pill); background: var(--blue); color: var(--white) !important; font: 600 14px/1 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-hover); }
.btn:focus-visible, a:focus-visible, input:focus-visible, .check:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.nw { white-space: nowrap; }

/* ---------- Cover: ring right, loop left, so the page sits balanced ---------- */
.cover { position: relative; overflow: hidden; min-height: 100vh; padding: 40px clamp(16px, 6vw, 88px); display: flex; flex-direction: column; }
.cover .logo { width: 150px; position: relative; z-index: 2; }
.cover-text { position: relative; z-index: 2; margin-top: auto; max-width: 860px; padding-bottom: 36px; }
.cover h1 { font-weight: 800; font-size: clamp(44px, 8.4vw, 104px); line-height: .98; letter-spacing: -.035em; }
.cover .sub { margin: 26px 0 0; max-width: 560px; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--muted); }
.cover-foot { position: relative; z-index: 2; font-size: 13px; font-weight: 500; }
.cover-foot a { color: var(--faint); text-decoration: none; }
.cover-shapes { position: absolute; inset: 0; pointer-events: none; }
.cover-shapes .s { position: absolute; display: block; }
.s-ring  { width: min(42vw, 540px); right: -7vw; top: 7vh; }
.s-loop  { width: min(34vw, 430px); left: 3vw; top: 24vh; }
.s-tri   { width: min(5vw, 60px); right: 30vw; top: 10vh; transform: rotate(-12deg); }
.s-dot   { width: min(3.6vw, 44px); left: 40vw; top: 15vh; }
.s-small { width: min(4.2vw, 52px); right: 5vw; top: 64vh; }

/* ---------- Contents ---------- */
.contents { position: relative; max-width: var(--wide-w); margin: 0 auto; padding: 96px clamp(16px, 6vw, 88px); }
.contents-shape { position: absolute; right: clamp(16px, 6vw, 88px); top: 70px; width: 170px; }
.toc { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 48px; }
.toc li { break-inside: avoid; border-top: 1px solid var(--line); }
.toc a { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 18px; }
.toc a:hover .t { color: var(--blue); }
.toc .n { font-size: 13px; font-weight: 700; color: var(--teal-deep); min-width: 22px; }
.keep { margin-top: 56px; padding: 28px 30px; background: var(--mist); border-radius: var(--r-card); max-width: 640px; }
.keep p { margin: 0 0 14px; }
.keep-form { display: flex; gap: 10px; flex-wrap: wrap; }
.keep-form input { flex: 1 1 220px; min-width: 0; padding: 11px 16px; border: 1px solid var(--line); border-radius: var(--r-pill); font: 400 15px var(--font); background: var(--white); }
.draft-note { margin: 12px 0 0 !important; font-size: 12px; color: var(--gold-ink); }

/* ---------- Chapters: a reading column, with pictures and components running wider ---------- */
.chapter { max-width: var(--wide-w); margin: 0 auto; padding: 96px clamp(16px, 6vw, 88px) 24px; }
.chapter.cont { padding-top: 56px; }
.ch-head { position: relative; margin-bottom: 34px; }
.ch-num { display: inline-block; font-weight: 800; font-size: 60px; line-height: 1; color: var(--ink); letter-spacing: -.03em; padding-bottom: 10px; border-bottom: 4px solid var(--teal); margin-bottom: 22px; }
.ch-shape { position: absolute; left: 96px; top: -4px; width: 34px; }
.ch-head h2 { font-weight: 800; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.025em; max-width: 820px; }
.ch-body > p, .ch-body > ul, .ch-body > ol, .ch-body > h3, .ch-body > blockquote, .ch-body > .tbl, .ch-body > .sources, .ch-body > .todo { max-width: var(--text-w); }
.ch-body > p:first-child { font-size: 21px; line-height: 1.55; color: var(--ink); }
.ch-body h3 { font-weight: 700; font-size: 23px; margin: 46px 0 10px; }
.ch-body p { margin: 0 0 16px; }
.ch-body ul, .ch-body ol { margin: 0 0 20px; padding-left: 0; list-style: none; }
.ch-body li { position: relative; padding-left: 26px; margin: 0 0 9px; }
.ch-body ul > li::before { content: ""; position: absolute; left: 4px; top: .58em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.ch-body ol { counter-reset: n; }
.ch-body ol > li { counter-increment: n; padding-left: 38px; }
.ch-body ol > li::before { content: counter(n); position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 24px; text-align: center; }
.ch-body li ul { margin: 8px 0 0; }
.ch-body blockquote { margin: 34px 0; padding: 28px 32px 26px 36px; background: var(--mist); border-radius: var(--r-card); position: relative; }
.ch-body blockquote::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 0 3px 3px 0; background: var(--teal); }
.ch-body blockquote p { font-size: 21px; line-height: 1.45; color: var(--ink); font-weight: 600; margin: 0 0 10px; letter-spacing: -.01em; }
.ch-body blockquote p:last-child { margin-bottom: 0; }
.tbl { overflow-x: auto; margin: 24px 0 28px; }
.ch-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ch-body th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 0 16px 10px 0; border-bottom: 2px solid var(--ink); }
.ch-body td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.ch-body td:first-child { color: var(--ink); font-weight: 600; }
.wide { margin: 34px 0 38px; }

/* Number tiles: a big number with the short teal line under it */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { background: var(--mist); border-radius: var(--r-card); padding: 26px 26px 24px; }
.stat-num { display: inline-block; font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -.035em; color: var(--ink); padding-bottom: 10px; border-bottom: 4px solid var(--teal); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Pictures from our own films */
.figs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.figs.n1 { grid-template-columns: 1fr; }
.fig-item { margin: 0; }
.fig-img { border-radius: var(--r-card); overflow: hidden; background: var(--mist); aspect-ratio: 16 / 9; }
.figs.tall .fig-img { aspect-ratio: 1 / 1; }
.fig-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fig-item.contain .fig-img img { object-fit: contain; }
figcaption { margin-top: 9px; font-size: 13px; line-height: 1.4; color: var(--faint); }
figcaption b, figcaption strong { color: var(--ink); font-weight: 600; }

/* Cards */
.cards { display: grid; gap: 16px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--mist); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 22px 22px 20px; }
.card-body h4 { font-size: 18px; font-weight: 700; line-height: 1.25; margin: 0 0 8px; }
.card-body p { font-size: 15px; line-height: 1.55; margin: 0 0 10px; }
.card-body p:last-child { margin-bottom: 0; }
.card-body ul { margin: 6px 0 0; }
.card-body li { font-size: 15px; }
.disc { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--ink); font-weight: 700; font-size: 14px; margin-bottom: 12px; }

/* A numbered picture timeline */
.steps { list-style: none; padding: 0 !important; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: none; max-width: none !important; }
.ch-body .steps > li { padding: 0; margin: 0; background: var(--mist); border-radius: var(--r-card); overflow: hidden; }
.ch-body .steps > li::before { content: none; }
.step-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line-soft); }
.step-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.step-body { padding: 18px 20px 20px; }
.step-body h4 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.step-body p { font-size: 14.5px; line-height: 1.5; margin: 0; }

/* The same frame in every shape */
.ratios { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.ratio-frame { height: 210px; border-radius: 12px; overflow: hidden; background: var(--mist); outline: 2px solid var(--teal); outline-offset: 3px; }
.ratio-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r169 .ratio-frame { aspect-ratio: 16 / 9; } .r916 .ratio-frame { aspect-ratio: 9 / 16; }
.r45 .ratio-frame { aspect-ratio: 4 / 5; } .r11 .ratio-frame { aspect-ratio: 1 / 1; }
.ratio-label { margin-top: 12px; font-size: 13px; color: var(--faint); }
.ratio-label b { color: var(--ink); font-weight: 700; margin-right: 4px; }

/* One story in the middle, the pieces around it */
.hub { position: relative; width: min(640px, 100%); aspect-ratio: 1; margin-left: auto; margin-right: auto; }
.hub-ring { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 14px solid var(--teal); border-radius: 50%; }
.hub-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22%; text-align: center; font-weight: 800; font-size: 20px; line-height: 1.15; color: var(--ink); }
.hub-items { list-style: none; margin: 0 !important; padding: 0; }
.ch-body .hub-items li { position: absolute; transform: translate(-50%, -50%); margin: 0; padding: 7px 13px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ch-body .hub-items li::before { content: none; }

/* The blue statement page: the website band's look, two key words in gold */
.statement { position: relative; overflow: hidden; background: var(--blue); color: var(--white); padding: 120px clamp(16px, 8vw, 120px); min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.st-text { position: relative; z-index: 1; max-width: 900px; margin: 0; font-weight: 800; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.035em; color: var(--white); text-wrap: balance; }
.st-text em { font-style: normal; color: var(--gold); }
.st-ring { position: absolute; width: 46vw; max-width: 620px; right: -12vw; top: -14vh; }
.st-loop { position: absolute; width: 30vw; max-width: 380px; right: 6vw; bottom: 6vh; }
.st-logo { position: relative; z-index: 1; width: 130px; margin-top: 48px; }

/* How we can help */
.help { position: relative; overflow: hidden; padding: 30px 34px 32px; border: 1.5px solid var(--line); border-radius: var(--r-card); max-width: var(--text-w); }
.help .label { margin-bottom: 10px; }
.help h4 { font-size: 22px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; max-width: 80%; }
.help p { margin: 0 0 18px; max-width: 80%; }
.help-shape { position: absolute; right: -40px; bottom: -40px; width: 170px; }

/* Captions: hard to read, readable, and the safe zone */
.capdemo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--ink); border: 6px solid var(--ink); }
.phone > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ui-side { position: absolute; right: 8px; bottom: 22%; display: flex; flex-direction: column; gap: 10px; }
.ui-side i { display: block; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.88); }
.ui-bottom { position: absolute; left: 10px; right: 46px; bottom: 12px; }
.ui-bottom b { display: block; width: 46%; height: 9px; border-radius: 5px; background: rgba(255,255,255,.9); margin-bottom: 7px; }
.ui-bottom s { display: block; width: 92%; height: 7px; border-radius: 4px; background: rgba(255,255,255,.7); margin-bottom: 6px; text-decoration: none; }
.cap { position: absolute; left: 10%; right: 10%; text-align: center; }
.cap-bad { bottom: 6%; font-size: 9px; font-weight: 300; color: #fff; letter-spacing: .01em; }
.cap-good { bottom: 33%; font-size: 15px; line-height: 1.3; font-weight: 600; color: #fff; background: rgba(23,24,28,.9); padding: 8px 10px; }
.zone { position: absolute; left: 7%; right: 22%; top: 12%; bottom: 26%; border: 2.5px dashed var(--teal); border-radius: 10px; display: flex; align-items: flex-end; justify-content: center; }
.zone span { background: var(--teal); color: var(--ink); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); margin-bottom: 8px; }
.verdict { margin: 10px 0 0 !important; font-size: 13px !important; font-weight: 600; color: var(--ink) !important; text-align: center; }
.verdict.no::before { content: "✕  "; color: var(--red); }
.verdict.yes::before { content: "✓  "; color: var(--teal-deep); }

/* The foreword photo slot: a photo inside a teal ring */
.photo { position: relative; width: 150px; height: 150px; float: right; margin: 0 0 16px 28px; }
.photo-ring { position: absolute; inset: 0; border: 10px solid var(--teal); border-radius: 50%; }
.photo-slot { position: absolute; inset: 16px; border-radius: 50%; background: var(--mist); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.photo-slot .todo { margin: 0; border: 0; background: none; padding: 6px; font-size: 11px; }

/* Checklists: tickable on screen, on a page of their own in the PDF */
.ch-body ul.checklist { max-width: 760px; }
.ch-body ul.checklist > li { padding: 14px 0 14px 46px; margin: 0; border-top: 1px solid var(--line); font-size: 18px; color: var(--ink); cursor: pointer; }
.ch-body ul.checklist > li:last-child { border-bottom: 1px solid var(--line); }
.ch-body ul.checklist > li::before { width: 22px; height: 22px; left: 0; top: 16px; border-radius: 6px; background: transparent; border: 2.5px solid var(--teal-deep); }
.ch-body ul.checklist > li.done { color: var(--muted); }
.ch-body ul.checklist > li.done::before { background: var(--teal); border-color: var(--teal); }
.ch-body ul.checklist > li.done::after { content: ""; position: absolute; left: 7px; top: 19px; width: 7px; height: 12px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* Sources, draft notes */
sup.fn { font-size: .62em; font-weight: 700; color: var(--teal-deep); margin-left: 1px; vertical-align: super; line-height: 0; }
.sources { margin: 34px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.sources-h { margin: 0 0 6px !important; font-size: 11px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint) !important; }
.ch-body .sources ol { margin: 0; }
.ch-body .sources ol > li { font-size: 12.5px; line-height: 1.45; color: var(--faint); padding-left: 24px; margin-bottom: 4px; }
.ch-body .sources ol > li::before { width: auto; height: auto; background: none; color: var(--teal-deep); font-size: 11px; line-height: inherit; top: 0; text-align: left; }
.todo { display: block; margin: 10px 0; padding: 10px 14px; border: 1.5px dashed var(--gold); border-radius: var(--r-field); background: var(--gold-tint); color: var(--gold-ink); font-size: 13px; line-height: 1.45; }
.todo b { color: var(--gold-ink); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; margin-right: 6px; }

/* ---------- Closing card: Blue, the gold crown once ---------- */
.closing { padding: 72px clamp(16px, 6vw, 88px) 96px; }
.closing-card { position: relative; overflow: hidden; max-width: var(--wide-w); margin: 0 auto; padding: clamp(36px, 6vw, 72px); background: var(--blue); color: var(--white); border-radius: 28px; }
.closing-card h2 { color: var(--white); font-weight: 800; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -.03em; max-width: 620px; margin: 18px 0 22px; position: relative; z-index: 1; }
.closing-card .crown { width: 64px; display: block; position: relative; z-index: 1; }
.closing-ring { position: absolute; width: 440px; right: -110px; bottom: -150px; }
.closing-body { position: relative; z-index: 1; max-width: 600px; }
.closing-body p { margin: 0 0 12px; color: var(--white); font-size: 18px; }
.closing-body strong, .closing-body b { color: var(--white); }
.closing-body a { color: var(--white); }

/* ---------- Screen only: the interactive page ---------- */
@media screen {
  .topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(16px, 4vw, 40px); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .3s ease; }
  .topbar.on { transform: none; }
  .topbar .brand img { width: 118px; display: block; }
  .progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; }
  .progress span { display: block; height: 100%; width: 0; background: var(--teal); }
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .cover-shapes .s { transition: transform .2s linear; will-change: transform; }
  .fig-img img, .card-img img, .step-img img { transition: transform .6s ease; }
  .fig-img:hover img, .card:hover .card-img img, .step:hover .step-img img { transform: scale(1.04); }
  .statement { margin: 56px 0; }
  .pb { display: none; }
}
@media screen and (max-width: 860px) {
  .cards.c3, .cards.c4 { grid-template-columns: repeat(2, 1fr); }
  .capdemo { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 700px) {
  body { font-size: 16px; }
  .s-ring { width: 74vw; right: -24vw; top: 8vh; }
  .s-loop { width: 60vw; left: -4vw; top: 27vh; }
  .s-tri { width: 38px; right: 46vw; top: 9vh; }
  .s-dot { width: 28px; left: 56vw; top: 22vh; }
  .s-small { width: 32px; right: 8vw; top: 50vh; }
  .chapter { padding-top: 68px; }
  .ch-num { font-size: 46px; }
  .ch-shape { left: 76px; width: 28px; }
  .cards.c2, .cards.c3, .cards.c4 { grid-template-columns: 1fr; }
  .capdemo { grid-template-columns: 1fr; max-width: 300px; }
  .ratio-frame { height: 130px; }
  .hub-centre { font-size: 15px; }
  .ch-body .hub-items li { font-size: 10.5px; padding: 4px 8px; }
  .hub-ring { border-width: 9px; }
  .stat-num { font-size: 44px; }
  .photo { width: 112px; height: 112px; }
  .contents-shape { width: 110px; top: 60px; }
  .closing-ring { width: 300px; right: -120px; bottom: -130px; }
  .help h4, .help p { max-width: none; }
  .help-shape { width: 120px; right: -50px; bottom: -50px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cover-shapes .s, .fig-img img, .card-img img, .step-img img { transition: none !important; transform: none !important; }
}

/* ---------- Print: the A4 PDF ---------- */
@page { size: A4; margin: 18mm 18mm 20mm;
  @bottom-left { font: 500 7.5pt Poppins, Verdana, sans-serif; color: #70737C; }
  @bottom-right { content: counter(page); font: 700 8pt Poppins, Verdana, sans-serif; color: #0B6E6A; } }
@page cover { margin: 0; @bottom-left { content: none; } @bottom-right { content: none; } }
@page closing { margin: 0; @bottom-left { content: none; } @bottom-right { content: none; } }
@page statement { margin: 0; @bottom-left { content: none; } @bottom-right { content: none; } }
@media print {
  body { font-size: 10pt; line-height: 1.58; }
  .topbar, .progress, .draft-note, .keep-form { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { text-decoration: none; }
  .pb { break-after: page; height: 0; }
  /* Cover */
  .cover { page: cover; height: 297mm; min-height: 0; padding: 18mm 18mm 16mm; break-after: page; }
  .cover .logo { width: 44mm; }
  .cover h1 { font-size: 46pt; }
  .cover .sub { font-size: 14pt; max-width: 125mm; }
  .s-ring { width: 124mm; right: -38mm; top: 22mm; }
  .s-loop { width: 98mm; left: 10mm; top: 86mm; }
  .s-tri { width: 14mm; right: 70mm; top: 24mm; }
  .s-dot { width: 10mm; left: 80mm; top: 52mm; }
  .s-small { width: 12mm; right: 18mm; top: 168mm; }
  /* Contents */
  .contents { padding: 0; max-width: none; break-after: page; }
  .contents-shape { right: 0; top: 0; width: 46mm; }
  .toc { columns: 1; }
  .toc a { font-size: 13pt; padding: 3.2mm 0; }
  .keep { margin-top: 12mm; padding: 6mm 7mm; }
  /* Chapters */
  .chapter { padding: 12mm 0 0; max-width: none; break-before: auto; }
  .chapter.cont { padding-top: 0; }
  .contents + .chapter { padding-top: 0; }
  .ch-head { margin-bottom: 8mm; break-after: avoid; break-inside: avoid; }
  .ch-num { font-size: 36pt; border-bottom-width: 3pt; margin-bottom: 5mm; padding-bottom: 2.5mm; }
  .ch-shape { left: 26mm; top: -1mm; width: 8mm; }
  .ch-head h2 { font-size: 25pt; }
  .ch-body > p, .ch-body > ul, .ch-body > ol, .ch-body > h3, .ch-body > blockquote, .ch-body > .tbl, .ch-body > .sources, .ch-body > .todo { max-width: 138mm; }
  .ch-body > p:first-child { font-size: 12.5pt; break-before: avoid; }
  .ch-body h3 { font-size: 14pt; margin: 8mm 0 2mm; break-after: avoid; }
  .ch-body blockquote { break-inside: avoid; padding: 5mm 6mm 5mm 7mm; margin: 6mm 0; }
  .ch-body blockquote p { font-size: 13pt; }
  .ch-body table { font-size: 9pt; }
  .ch-body tr, .ch-body li { break-inside: avoid; }
  .tbl { overflow: visible; }
  .wide { margin: 6mm 0 7mm; break-inside: avoid; }
  .stats { gap: 4mm; grid-template-columns: repeat(auto-fit, minmax(40mm, 1fr)); }
  .stat { padding: 5mm 5mm 4.5mm; border-radius: 4mm; }
  .stat-num { font-size: 30pt; border-bottom-width: 3pt; padding-bottom: 2mm; margin-bottom: 3mm; }
  .stat-label { font-size: 8.8pt; }
  .figs { gap: 4mm; grid-template-columns: repeat(auto-fit, minmax(38mm, 1fr)); }
  .figs.n1 { grid-template-columns: 1fr; }
  .fig-img { border-radius: 4mm; }
  figcaption { font-size: 7.6pt; margin-top: 2mm; }
  .cards { gap: 4mm; }
  .card { border-radius: 4mm; break-inside: avoid; }
  .card-body { padding: 4.5mm 4.5mm 4mm; }
  .card-body h4 { font-size: 10.6pt; margin-bottom: 1.5mm; }
  .card-body p, .card-body li { font-size: 8.8pt; line-height: 1.5; margin-bottom: 1.5mm; }
  .cards.c4 .card-body p { font-size: 8.4pt; }
  .disc { width: 7mm; height: 7mm; font-size: 8.5pt; margin-bottom: 2.5mm; }
  .steps { gap: 4mm; grid-template-columns: repeat(3, 1fr); }
  .ch-body .steps > li { border-radius: 4mm; break-inside: avoid; }
  .step-body { padding: 3.5mm 4mm 4mm; }
  .step-body h4 { font-size: 10pt; margin-bottom: 1mm; }
  .step-body p { font-size: 8.4pt; }
  .ratios { gap: 5mm; flex-wrap: nowrap; }
  .ratio-frame { height: 40mm; border-radius: 3mm; outline-width: 1.5pt; outline-offset: 1mm; }
  .ratio-label { font-size: 8pt; margin-top: 2.5mm; }
  .hub { width: 135mm; }
  .hub-ring { border-width: 4mm; }
  .hub-centre { font-size: 13pt; }
  .ch-body .hub-items li { font-size: 8pt; padding: 1.3mm 3mm; }
  .statement { page: statement; break-before: page; break-after: page; height: 297mm; min-height: 0; margin: 0; padding: 30mm 22mm; }
  .st-text { font-size: 44pt; }
  .st-ring { width: 150mm; right: -50mm; top: -40mm; }
  .st-loop { width: 100mm; right: 18mm; bottom: 28mm; }
  .st-logo { width: 38mm; margin-top: 16mm; }
  .help { padding: 6mm 7mm; border-radius: 4mm; max-width: 138mm; }
  .help h4 { font-size: 13pt; }
  .help p { font-size: 9.4pt; margin-bottom: 4mm; }
  .help .btn { padding: 2.5mm 5mm; font-size: 8.5pt; }
  .help-shape { width: 40mm; right: -9mm; bottom: -9mm; }
  .capdemo { gap: 6mm; grid-template-columns: repeat(3, 44mm); justify-content: start; }
  .phone { border-radius: 5mm; border-width: 1.6mm; }
  .cap-bad { font-size: 5.5pt; }
  .cap-good { font-size: 8.5pt; padding: 1.5mm 2mm; }
  .ui-side i { width: 4.5mm; height: 4.5mm; }
  .ui-side { gap: 1.8mm; right: 1.8mm; }
  .verdict { font-size: 7.6pt !important; }
  .zone span { font-size: 6.5pt; }
  .photo { width: 34mm; height: 34mm; margin: 0 0 4mm 6mm; }
  .photo-ring { border-width: 2.4mm; }
  .photo-slot { inset: 4mm; }
  /* A checklist gets a page of its own, all of it */
  .checklist-ch { break-before: page; break-inside: avoid; padding-top: 6mm; }
  .ch-body ul.checklist { break-inside: avoid; }
  .ch-body ul.checklist > li { font-size: 11.5pt; padding: 3.3mm 0 3.3mm 11mm; }
  .ch-body ul.checklist > li::before { width: 5mm; height: 5mm; top: 3.6mm; border-width: 1.6pt; border-radius: 1.4mm; }
  .sources { break-inside: avoid; margin-top: 6mm; }
  .ch-body .sources ol > li { font-size: 7.4pt; }
  .closing { page: closing; padding: 18mm; height: 297mm; break-before: page; display: flex; align-items: center; }
  .closing-card { width: 100%; min-height: 150mm; padding: 18mm 16mm; border-radius: 10mm; display: flex; flex-direction: column; justify-content: center; }
  .closing-card h2 { font-size: 36pt; }
  .closing-body p { font-size: 13pt; }
  .closing-ring { width: 120mm; right: -32mm; bottom: -42mm; }
  .todo { break-inside: avoid; }
}

/* Card credits and the jargon buster */
.card-body p.credit { margin-top: 10px; font-size: 12.5px; color: var(--faint); }
.glossary { columns: 2 300px; column-gap: 40px; }
.glossary p { break-inside: avoid; font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.glossary p strong:first-child { color: var(--ink); }
@media print {
  .card-body p.credit { font-size: 7.4pt; margin-top: 2mm; }
  .glossary { column-gap: 8mm; break-inside: auto; }
  .glossary p { font-size: 8.8pt; margin-bottom: 2.4mm; }
}

/* Round 2 fixes: every chapter opens on a fresh page (no heads stranded at the foot of a page),
   and the four shapes keep their true proportions. */
@media print {
  .chapter { break-before: page; padding-top: 0; }
  .chapter.cont { break-before: auto; padding-top: 0; }
  .contents + .chapter { break-before: auto; }
  .ratio { flex: none; }
  .ratio-frame { height: 36mm; }
}

/* A trend's to-do list: a small tickable card */
.todo-card { background: var(--mist); border-radius: var(--r-card); padding: 24px 28px 18px; max-width: var(--text-w); }
.todo-card .label { margin-bottom: 8px; }
.ch-body ul.checklist.small { margin: 0; max-width: none; }
.ch-body ul.checklist.small > li { font-size: 16px; padding: 10px 0 10px 38px; border-top: 1px solid var(--line); }
.ch-body ul.checklist.small > li:first-child { border-top: 0; }
.ch-body ul.checklist.small > li:last-child { border-bottom: 0; }
.ch-body ul.checklist.small > li::before { width: 18px; height: 18px; top: 12px; border-width: 2px; border-radius: 5px; }
.ch-body ul.checklist.small > li.done::after { left: 6px; top: 14px; width: 6px; height: 10px; border-width: 0 2.5px 2.5px 0; }
@media print {
  .todo-card { padding: 4.5mm 6mm 3mm; border-radius: 4mm; max-width: 138mm; }
  .ch-body ul.checklist.small > li { font-size: 9.4pt; padding: 2mm 0 2mm 8mm; }
  .ch-body ul.checklist.small > li::before { width: 3.8mm; height: 3.8mm; top: 2.4mm; border-width: 1.3pt; border-radius: 1mm; }
}

/* A picture beside its text */
.split { display: grid; grid-template-columns: 38% 1fr; gap: 28px; align-items: center; }
.split.right { grid-template-columns: 1fr 38%; }
.split.right .split-pic { order: 2; }
.split-pic { margin: 0; }
.split-pic .fig-img { aspect-ratio: 4 / 5; }
.split-text > *:last-child { margin-bottom: 0; }
.split-text blockquote { margin: 0; }
@media screen and (max-width: 700px) { .split, .split.right { grid-template-columns: 1fr; } .split.right .split-pic { order: 0; } }

/* Print: tighter, so each chapter sits on its page */
@media print {
  .wide { margin: 4.5mm 0 5.5mm; }
  .ch-head { margin-bottom: 6mm; }
  .ch-num { font-size: 32pt; margin-bottom: 4mm; }
  .ch-head h2 { font-size: 22pt; }
  .ch-body > p:first-child { font-size: 11.5pt; }
  .stat { padding: 4mm 4.5mm 4mm; }
  .stat-num { font-size: 26pt; }
  .stat-label { font-size: 8.4pt; }
  .card-body { padding: 4mm 4.2mm 3.6mm; }
  .card-body h4 { font-size: 10pt; }
  .card-body p, .card-body li { font-size: 8.5pt; }
  .disc { width: 6mm; height: 6mm; font-size: 8pt; margin-bottom: 2mm; }
  .figs, .cards, .stats { gap: 3.5mm; }
  .split { gap: 6mm; grid-template-columns: 52mm 1fr; }
  .split.right { grid-template-columns: 1fr 52mm; }
  .split-text blockquote p { font-size: 11pt; }
}

/* Sources as one compact line of small print */
.sources p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--faint); }
.sources .sources-h { display: inline; margin-right: 6px !important; }
.src-i { margin-right: 10px; }
.src-i b { color: var(--teal-deep); font-weight: 700; margin-right: 2px; }
@media print {
  .sources { margin-top: 4mm; padding-top: 2.5mm; }
  .sources p { font-size: 6.8pt; line-height: 1.45; }
  .hub { width: 112mm; }
  .ch-body .hub-items li { font-size: 7.4pt; }
}
@media print { .hub { width: 100mm; } }
@media print { .capdemo { grid-template-columns: repeat(3, 38mm); gap: 8mm; } }
@media print { .capdemo { grid-template-columns: repeat(3, 33mm); gap: 9mm; } .cap-good { font-size: 7.4pt; } }

/* Vertical films: portrait frames and portrait cards; the foreword photo */
.figs.portrait .fig-img { aspect-ratio: 9 / 16; }
.cards.portrait .card-img { aspect-ratio: 9 / 16; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media print { .figs.portrait { grid-template-columns: repeat(4, 1fr); } }

/* Round 3 (Andy, 20 Nov night): say what each chapter is for, end on the takeaway, less text. */
.ch-intro { margin: 16px 0 0; max-width: 680px; font-size: 20px; line-height: 1.45; color: var(--muted); font-weight: 500; }
.toc .t { display: flex; flex-direction: column; }
.toc .d { font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 3px; }
.takeaway { position: relative; max-width: var(--text-w); padding: 22px 26px 22px 30px; border-radius: var(--r-card); background: var(--white); border: 2px solid var(--teal); }
.takeaway .label { margin-bottom: 6px; }
.takeaway .tk-text { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 700; color: var(--ink); }
/* The foreword sign-off: a big photo in the teal ring */
.signoff { display: flex; align-items: center; gap: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.so-photo { position: relative; flex: none; width: 220px; height: 220px; }
.so-photo .photo-ring { position: absolute; inset: 0; border: 12px solid var(--teal); border-radius: 50%; }
.so-photo img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); border-radius: 50%; object-fit: cover; }
.so-text p { margin: 0 0 6px; font-size: 17px; }
.so-text p:first-child { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.so-text p:first-child strong { font-weight: 800; }
@media screen and (max-width: 700px) { .signoff { flex-direction: column; align-items: flex-start; } .so-photo { width: 170px; height: 170px; } }
@media print {
  .ch-intro { font-size: 12pt; margin-top: 3mm; max-width: 150mm; }
  .toc a { padding: 2.6mm 0; }
  .toc .d { font-size: 8.6pt; margin-top: .6mm; }
  .takeaway { max-width: 150mm; padding: 4mm 6mm 4mm 6mm; border-radius: 4mm; border-width: 1.5pt; break-inside: avoid; }
  .takeaway .tk-text { font-size: 11.5pt; }
  /* the foreword fills its page, with the photo and sign-off at the foot */
  .foreword { height: 256mm; display: flex; flex-direction: column; }
  .foreword .ch-body { flex: 1; display: flex; flex-direction: column; }
  .foreword .signoff { margin-top: auto; padding-top: 7mm; gap: 9mm; }
  .so-photo { width: 62mm; height: 62mm; }
  .so-photo .photo-ring { border-width: 3.4mm; }
  .so-photo img { inset: 6mm; width: calc(100% - 12mm); height: calc(100% - 12mm); }
  .so-text p { font-size: 10pt; }
  .so-text p:first-child { font-size: 16pt; }
}
.glossary h3 { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); break-after: avoid; }
.glossary h3::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--teal); }
.glossary h3:first-child { margin-top: 0; }
@media print { .glossary h3 { font-size: 7.6pt; margin: 4mm 0 2mm; } .glossary h3:first-child { margin-top: 0; } }
@media print {
  .cards.c3 .card-img { aspect-ratio: 2 / 1; }
  .cards.c3.portrait .card-img, .cards.portrait .card-img { aspect-ratio: 9 / 16; }
  .card-body p.credit { margin-top: 1.2mm; }
}
/* Round 3 polish: a bigger foreword photo filling the foot of the page; the contents wave clear of the list */
@media print {
  .foreword .ch-body > p { font-size: 11pt; line-height: 1.6; }
  .foreword .ch-body > p:first-child { font-size: 13pt; }
  .so-photo { width: 88mm; height: 88mm; }
  .so-photo .photo-ring { border-width: 4.5mm; }
  .so-photo img { inset: 8mm; width: calc(100% - 16mm); height: calc(100% - 16mm); }
  .so-text p:first-child { font-size: 20pt; }
  .so-text p { font-size: 10.5pt; }
  .contents-shape { top: auto; bottom: 6mm; right: 4mm; width: 40mm; }
  .cards.c3 .card-img { aspect-ratio: 2.2 / 1; }
  .card-body { padding: 3.6mm 4mm 3.4mm; }
}
@media screen { .so-photo { width: 260px; height: 260px; } }
