/*
 * MOMO Report System, components (2026-11-05). See README.md for the rules
 * and the page templates. Every class is prefixed rp-. Sizes come from
 * tokens.css and are in cqw, so they resolve against the page they sit on.
 * Placed elements (figures, boxes, bands, timeline entries) take their
 * position by column: --c (first column, 1-12) and --s (columns spanned),
 * with --y and --h as unitless cqw.
 */

/* ---------- Viewer: the desk the pages sit on ---------- */

.rp-desk {
  margin: 0;
  background: var(--rp-desk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.rp-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rp-desk-gap);
  padding: var(--rp-desk-gap);
}

/* ---------- Page ---------- */

.rp-page {
  container-type: inline-size;
  position: relative;
  flex: none;
  width: min(100%, calc((100svh - 2 * var(--rp-desk-gap)) * 16 / 9));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--rp-paper);
  color: var(--rp-ink);
  font-family: var(--rp-sans);
}
.rp-page *, .rp-page *::before, .rp-page *::after { box-sizing: border-box; }
.rp-page :where(h1, h2, h3, p, ul, ol, li, figure, blockquote, dl, dd) { margin: 0; padding: 0; }
.rp-page :where(ul, ol) { list-style: none; }
.rp-page a { color: inherit; }

.rp-page--cream { background: var(--rp-cream); }
.rp-page--night { background: var(--rp-night); color: #FFFFFF; --rp-rule: #5B6170; --rp-rule-strong: #8A90A0; }
.rp-page--a1 { background: var(--rp-a1); color: var(--rp-a1-ink); }
.rp-page--a2 { background: var(--rp-a2); color: var(--rp-a2-ink); }
.rp-page--a3 { background: var(--rp-a3); color: var(--rp-a3-ink); --rp-rule: rgba(255, 255, 255, 0.55); --rp-rule-strong: rgba(255, 255, 255, 0.8); }

/* ---------- Chrome: header band, bottom rule and footer, column lines ---------- */

.rp-head {
  position: absolute;
  z-index: 6;
  top: 0;
  left: var(--rp-margin);
  right: var(--rp-margin);
  height: var(--rp-head-h);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2cqw;
  padding-bottom: 1.2cqw;
  border-bottom: var(--rp-hair) solid var(--rp-rule);
}
.rp-head__label {
  display: flex;
  height: 2.7cqw; /* the logo's height, so label and title centre on one line */
  align-items: center;
  gap: 0.85cqw;
  font: var(--rp-weight-regular) var(--rp-type-lead) / var(--rp-lh-lead) var(--rp-sans); letter-spacing: var(--rp-track-lead);
  color: var(--rp-head-ink, inherit);
}
.rp-head__title {
  display: flex;
  height: 2.7cqw;
  align-items: center;
  gap: var(--rp-gutter);
  font: var(--rp-weight-regular) var(--rp-type-small) / var(--rp-lh-small) var(--rp-sans); letter-spacing: var(--rp-track-small);
  color: var(--rp-head-title-ink, inherit);
}
.rp-head__logo { height: 2.7cqw; width: var(--rp-col); display: flex; justify-content: flex-end; } /* column 12 */
.rp-head__logo svg { height: 100%; width: auto; }

.rp-foot {
  position: absolute;
  z-index: 6;
  top: var(--rp-foot-y);
  left: var(--rp-margin);
  right: var(--rp-margin);
  display: flex;
  justify-content: space-between;
  padding-top: 0.75cqw;
  border-top: var(--rp-hair) solid var(--rp-rule-strong);
  font: var(--rp-weight-regular) var(--rp-type-small) / var(--rp-lh-small) var(--rp-sans); letter-spacing: var(--rp-track-small);
}
.rp-foot b { font-weight: var(--rp-weight-medium); letter-spacing: var(--rp-track-caps); text-transform: uppercase; color: var(--rp-foot-brand-ink, inherit); }   /* spaced capitals, like .rp-caps */
.rp-foot span { color: var(--rp-foot-no-ink, inherit); }

.rp-vline {
  position: absolute;
  z-index: 5;
  top: var(--rp-head-h);
  bottom: var(--rp-foot-gap);
  border-left: var(--rp-hair) solid var(--rp-rule);
}
.rp-vline--1 { left: var(--rp-x1); }
.rp-vline--2 { left: var(--rp-x2); }
.rp-vline--h { left: var(--rp-half); }
.rp-vline--full { top: 0; bottom: 0; }

/* ---------- Regions: the columns content flows in ---------- */

.rp-r {
  position: absolute;
  z-index: 4;
  top: var(--rp-frame-top);
  bottom: var(--rp-foot-gap);
  display: flex;
  flex-direction: column;
  gap: 1.6cqw;
  padding-top: var(--rp-region-pt);
  padding-bottom: var(--rp-region-pb);
}
.rp-r { left: calc(var(--rp-margin) + (var(--c, 1) - 1) * var(--rp-step)); width: calc(var(--s, 12) * var(--rp-step) - var(--rp-gutter)); }
.rp-r--1 { --c: 1; --s: 4; }
.rp-r--2 { --c: 5; --s: 4; }
.rp-r--3 { --c: 9; --s: 4; }
.rp-r--12 { --c: 1; --s: 8; }
.rp-r--23 { --c: 5; --s: 8; }
.rp-r--l { --c: 1; --s: 6; }
.rp-r--r { --c: 7; --s: 6; }
.rp-r--full { --c: 1; --s: 12; }
.rp-r--between { justify-content: space-between; }
.rp-r--end { justify-content: flex-end; }
.rp-r--center { justify-content: center; }
/* A region's top half: the lower part of a page under a picture band. */
.rp-r--low { top: var(--rp-band-y, 28cqw); padding-top: 3cqw; }
.rp-stack { display: flex; flex-direction: column; gap: 1.6cqw; }
.rp-stack--tight { gap: 0; }
.rp-stack--tight > .rp-caps { line-height: var(--rp-lh-lead); }   /* the label takes one lead line, the text below stays on the grid */

/* ---------- Placed elements ---------- */

.rp-at {
  position: absolute;
  left: calc(var(--rp-margin) + (var(--c, 1) - 1) * var(--rp-step));       /* starts on column --c */
  top: var(--top, calc(var(--y, 0) * 1cqw));   /* --top takes a length, e.g. var(--rp-row-d) */
  width: calc(var(--s, 12) * var(--rp-step) - var(--rp-gutter));       /* spans --s columns */
  height: var(--hh, calc(var(--h, 10) * 1cqw));
}
/* Pictures may bleed: from their column to the page edge, or edge to edge. */
.rp-at--to-r { width: auto; right: 0; }
.rp-at--full { left: 0; width: 100%; }
.rp-panel { position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: calc(var(--rp-margin) + var(--ps, 4) * var(--rp-step) - var(--rp-gutter)); background: var(--rp-panel, var(--rp-a1)); }
.rp-panel--half { --ps: 6; }
.rp-band { position: absolute; z-index: 0; left: 0; right: 0; top: var(--top, calc(var(--y) * 1cqw)); bottom: 0; background: var(--rp-panel, var(--rp-a1)); }
.rp-box { z-index: 2; background: var(--rp-panel, var(--rp-a3)); color: var(--rp-box-ink, #FFFFFF); padding: 3.3cqw calc(var(--rp-gutter) / 2); }
/* A box fills its columns and half a gutter each side, so its text sits on the columns. */
.rp-box.rp-at { left: calc(var(--rp-margin) + (var(--c, 1) - 1) * var(--rp-step)); width: calc(var(--s, 12) * var(--rp-step) - var(--rp-gutter)); }
.rp-hr { position: absolute; z-index: 3; left: calc(var(--rp-margin) + (var(--c, 1) - 1) * var(--rp-step)); right: var(--rp-margin); top: calc(var(--y) * 1cqw); border-top: var(--rp-hair) solid var(--rp-rule); }

/* ---------- Pictures ---------- */

.rp-fig { position: absolute; z-index: 3; overflow: hidden; background: var(--rp-grey); }
.rp-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rp-fig--frame { outline: var(--rp-hair) solid var(--rp-ink); }
.rp-fig--grey img { filter: grayscale(1) contrast(1.06); }
.rp-fig--tile { border-radius: var(--rp-r-tile); }
.rp-fig--dim::after { content: ''; position: absolute; inset: 0; background: rgba(7, 12, 20, 0.55); }
.rp-fig--scrim-top::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 11cqw;
  background: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0));
}
.rp-credit {
  position: absolute;
  z-index: 2;
  right: 0.55cqw;
  bottom: 0.9cqw;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: var(--rp-weight-medium) var(--rp-type-micro) / var(--rp-lh-micro) var(--rp-sans); letter-spacing: var(--rp-track-micro);
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 0 0.4cqw rgba(0, 0, 0, 0.55);
}

/* ---------- Type ---------- */

.rp-cover-title { font: var(--rp-weight-regular) var(--rp-type-display) / var(--rp-lh-display) var(--rp-sans); letter-spacing: var(--rp-track-display); }
.rp-title { font: var(--rp-weight-regular) var(--rp-type-display) / var(--rp-lh-display) var(--rp-sans); letter-spacing: var(--rp-track-display); }
.rp-headline { font: var(--rp-weight-regular) var(--rp-type-heading) / var(--rp-lh-heading) var(--rp-sans); letter-spacing: var(--rp-track-heading); }
.rp-quote { font: var(--rp-weight-regular) var(--rp-type-heading) / var(--rp-lh-heading) var(--rp-sans); letter-spacing: var(--rp-track-heading); }
.rp-statement { font: var(--rp-weight-regular) var(--rp-type-heading) / var(--rp-lh-heading) var(--rp-sans); letter-spacing: var(--rp-track-heading); }
.rp-opener-text { font: var(--rp-weight-regular) var(--rp-type-display) / var(--rp-lh-display) var(--rp-sans); letter-spacing: var(--rp-track-display); }
.rp-lead { font: var(--rp-weight-regular) var(--rp-type-lead) / var(--rp-lh-lead) var(--rp-sans); letter-spacing: var(--rp-track-lead); }
.rp-body { display: flex; flex-direction: column; gap: 1.4cqw; font: var(--rp-weight-regular) var(--rp-type-body) / var(--rp-lh-body) var(--rp-sans); letter-spacing: var(--rp-track-body); }
.rp-body--cols { display: block; columns: 2; column-gap: var(--rp-gutter); }
.rp-body--cols p + p { padding-top: 1.4cqw; }
.rp-caps { font: var(--rp-weight-medium) var(--rp-type-small) / var(--rp-lh-small) var(--rp-sans); letter-spacing: var(--rp-track-caps); text-transform: uppercase; }
.rp-label { font: var(--rp-weight-regular) var(--rp-type-lead) / var(--rp-lh-lead) var(--rp-sans); letter-spacing: var(--rp-track-lead); }
.rp-small { font: var(--rp-weight-regular) var(--rp-type-small) / var(--rp-lh-small) var(--rp-sans); letter-spacing: var(--rp-track-small); }

/* ---------- N° pill and the pill button ---------- */

.rp-no {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 1.7cqw;
  padding: 0 0.78cqw;
  border-radius: 999px;
  background: var(--rp-no-bg, var(--rp-ink));
  color: var(--rp-no-fg, var(--rp-paper));
  font: var(--rp-weight-regular) var(--rp-type-small) / var(--rp-lh-small) var(--rp-sans); letter-spacing: var(--rp-track-small);
  white-space: nowrap;
}
.rp-no--inverse { --rp-no-bg: #FFFFFF; --rp-no-fg: var(--rp-ink); }

.rp-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1cqw;
  width: calc(3 * var(--rp-step) - var(--rp-gutter));   /* every button the same width, three columns (client, 2026-11-06) */
  height: var(--rp-row);   /* one row tall, so a button on the last row ends on the frame, --rp-pad above the bottom rule */
  padding: 0 1.6cqw;
  border: var(--rp-hair-strong) solid currentColor;
  border-radius: 999px;
  font: var(--rp-weight-regular) var(--rp-type-lead) / var(--rp-lh-lead) var(--rp-sans); letter-spacing: var(--rp-track-lead);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}
.rp-cta:hover { background: rgba(127, 127, 127, 0.1); }
.rp-cta::after, .rp-arrow::after {
  content: '';
  width: 1.2cqw;
  height: 1.2cqw;
  background: currentColor;
  -webkit-mask: var(--rp-icon-arrow) center / contain no-repeat;
  mask: var(--rp-icon-arrow) center / contain no-repeat;
}
.rp-arrow { display: inline-flex; align-items: center; gap: 0.6cqw; text-decoration: none; }

:root {
  --rp-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12h19M14 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E");
  --rp-icon-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4l15 15M9 19h10V9' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E");
}

/* ---------- Lists ---------- */

.rp-arrows { display: flex; flex-direction: column; gap: 0.75cqw; font: var(--rp-weight-regular) var(--rp-type-lead) / var(--rp-lh-lead) var(--rp-sans); letter-spacing: var(--rp-track-lead); }
.rp-arrows li { position: relative; padding-left: 2.3cqw; }
/* The arrow sits on the column line, inside the column; the words follow it. */
.rp-arrows li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18cqw;
  width: 1.45cqw;
  height: 1.45cqw;
  background: currentColor;
  -webkit-mask: var(--rp-icon-arrow) center / contain no-repeat;
  mask: var(--rp-icon-arrow) center / contain no-repeat;
}
.rp-arrows--body { font: var(--rp-weight-regular) var(--rp-type-body) / var(--rp-lh-body) var(--rp-sans); letter-spacing: var(--rp-track-body); gap: 0.55cqw; }
.rp-arrows--body li { padding-left: 1.9cqw; }
.rp-arrows--body li::before { left: 0; top: 0.2cqw; width: 1.1cqw; height: 1.1cqw; }

/* ---------- Facts table ---------- */

.rp-facts { display: flex; flex-direction: column; gap: var(--rp-row-gap); width: 100%; }   /* one fact a grid row, A to D (client, 2026-11-06) */
.rp-facts__row {
  position: relative;
  display: grid;
  grid-template-columns: calc(2 * var(--rp-step)) 1fr;
  align-items: center;   /* key and value on one middle line, in the middle of the row (client, 2026-11-06: always align in the middle) */
  height: var(--rp-row);
}
/* the dotted rule sits in the middle of the gutter under each fact, clear of the text */
.rp-facts__row::after { content: ''; position: absolute; left: 0; right: 0; bottom: calc(var(--rp-row-gap) / -2); border-bottom: var(--rp-hair) dotted var(--rp-dots); }
.rp-facts__v { font: var(--rp-weight-regular) var(--rp-type-lead) / var(--rp-lh-lead) var(--rp-sans); letter-spacing: var(--rp-track-lead); white-space: nowrap; }   /* one line (client, 2026-11-06: reduce font, text in a straight line) */

/* ---------- Matrix: the bordered framework grid ---------- */

.rp-matrix {
  position: absolute;
  z-index: 4;
  top: var(--rp-frame-top);
  bottom: var(--rp-foot-gap);
  left: var(--rp-margin);
  right: var(--rp-margin);
  display: grid;
  column-gap: var(--rp-gutter);
  row-gap: var(--rp-row-gap);
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  grid-template-rows: repeat(var(--rows, 2), calc(2 * var(--rp-row) + var(--rp-row-gap)));   /* a card fills two grid rows */
  align-content: start;
}
.rp-matrix__cell {
  position: relative;
  display: grid;
  grid-template-rows: var(--rp-row) var(--rp-row);   /* pill and title on the first row, the text on the second */
  row-gap: var(--rp-row-gap);
}
/* the rule between two bands of cards sits in the gutter, clear of the text */
.rp-matrix__cell:nth-child(n + 4)::before { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--rp-row-gap) / -2); border-top: var(--rp-hair) solid var(--rp-ink); }
.rp-matrix__top { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75cqw; }
.rp-matrix__cell > * { align-self: start; }   /* each part hugs its text, so no frame reaches the bottom rule */
.rp-matrix__t { font: var(--rp-weight-regular) var(--rp-type-lead) / var(--rp-lh-lead) var(--rp-sans); letter-spacing: var(--rp-track-lead); }
.rp-matrix__d { font: var(--rp-weight-regular) var(--rp-type-body) / var(--rp-lh-body) var(--rp-sans); letter-spacing: var(--rp-track-body); }

/* ---------- Contents (SPACE10) ---------- */

.rp-toc-label { position: absolute; left: var(--rp-margin); width: calc(4 * var(--rp-step) - var(--rp-gutter)); top: var(--rp-frame-top); margin: 0; font: var(--rp-weight-regular) var(--rp-type-heading) / var(--rp-lh-heading) var(--rp-sans); letter-spacing: var(--rp-track-heading); }   /* the page's title, a heading on row A (client, 2026-11-06) */
.rp-toc {
  position: absolute;
  left: calc(var(--rp-margin) + 4 * var(--rp-step));   /* starts on column 5 (client, 2026-11-06) */
  width: calc(4 * var(--rp-step) - var(--rp-gutter));  /* columns 5 to 8 */
  top: var(--rp-frame-top);   /* row A, beside the page's title */
  display: grid;
  grid-template-columns: var(--rp-step) 1fr;
  grid-auto-rows: var(--rp-row);   /* one entry a grid row, A to E (client, 2026-11-06) */
  row-gap: var(--rp-row-gap);
  font: var(--rp-weight-regular) var(--rp-type-lead) / var(--rp-lh-lead) var(--rp-sans); letter-spacing: var(--rp-track-lead);
}
.rp-toc a { text-decoration: none; }
.rp-toc a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- Section opener (SPACE10) ---------- */

.rp-opener-no { position: absolute; left: var(--rp-margin); width: calc(4 * var(--rp-step) - var(--rp-gutter)); top: var(--rp-frame-top); }
.rp-opener-title { position: absolute; left: calc(var(--rp-margin) + 4 * var(--rp-step)); width: calc(4 * var(--rp-step) - var(--rp-gutter)); top: var(--rp-frame-top); }
.rp-opener-intro { position: absolute; left: calc(var(--rp-margin) + 4 * var(--rp-step)); width: calc(4 * var(--rp-step) - var(--rp-gutter)); bottom: calc(var(--rp-foot-gap) + 1.9cqw); font: var(--rp-weight-regular) var(--rp-type-lead) / var(--rp-lh-lead) var(--rp-sans); letter-spacing: var(--rp-track-lead); }

/* ---------- Dividers ---------- */

.rp-divider {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3.3cqw;
  text-align: left;
  padding: 0 var(--rp-margin);
}

/* ---------- Principles panel (SPACE10) ---------- */

.rp-rows-panel {
  position: absolute;
  z-index: 2;
  left: calc(var(--rp-margin) + 6 * var(--rp-step));
  right: var(--rp-margin);
  top: var(--rp-frame-top);
  display: flex;
  flex-direction: column;
  gap: var(--rp-row-gap);   /* one row of the panel a grid row, A to F (client, 2026-11-06) */
}
.rp-row {
  position: relative;
  display: grid;
  grid-template-columns: calc(2 * var(--rp-step) - var(--rp-gutter)) 1fr;
  column-gap: var(--rp-gutter);
  align-items: center;     /* in the middle of the row (client, 2026-11-06) */
  height: var(--rp-row);
  font: var(--rp-weight-regular) var(--rp-type-body) / var(--rp-lh-body) var(--rp-sans); letter-spacing: var(--rp-track-body);
}
/* its accent rule sits in the middle of the gutter above it, clear of the text */
.rp-row::before { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--rp-row-gap) / -2); border-top: var(--rp-hair-strong) solid var(--rp-row-bg, var(--rp-a4)); }

/* ---------- Links list (SPACE10) ---------- */

.rp-links { position: absolute; left: calc(var(--rp-margin) + 4 * var(--rp-step)); width: calc(4 * var(--rp-step) - var(--rp-gutter)); top: var(--rp-frame-top); display: flex; flex-direction: column; gap: 0.15cqw; font: var(--rp-weight-regular) var(--rp-type-lead) / var(--rp-lh-lead) var(--rp-sans); letter-spacing: var(--rp-track-lead); }
.rp-links a { display: inline-flex; align-items: center; gap: 0.7cqw; text-decoration: none; }
.rp-links a::after { content: ''; width: 1.75cqw; height: 1.75cqw; background: currentColor; -webkit-mask: var(--rp-icon-arrow) center / contain no-repeat; mask: var(--rp-icon-arrow) center / contain no-repeat; }
.rp-links a:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: max(1px, 0.07cqw); }

/* ---------- Timeline (Nayture) ---------- */

.rp-step { position: absolute; z-index: 4; left: calc(var(--rp-margin) + (var(--c, 1) - 1) * var(--rp-step)); top: calc(var(--y) * 1cqw); width: calc(var(--s, 3) * var(--rp-step) - var(--rp-gutter)); display: flex; flex-direction: column; gap: 0.8cqw; }
.rp-step__arrow { width: 1.55cqw; height: 1.55cqw; background: currentColor; -webkit-mask: var(--rp-icon-down) center / contain no-repeat; mask: var(--rp-icon-down) center / contain no-repeat; }
.rp-step__t { font: var(--rp-weight-regular) var(--rp-type-lead) / var(--rp-lh-lead) var(--rp-sans); letter-spacing: var(--rp-track-lead); }   /* the same as a card title (client review, 2026-11-06) */
.rp-step__d { font: var(--rp-weight-regular) var(--rp-type-body) / var(--rp-lh-body) var(--rp-sans); letter-spacing: var(--rp-track-body); }

/* ---------- Back cover (SPACE10) ---------- */

.rp-wordmark { position: absolute; z-index: 3; left: 50%; top: 47%; width: 30cqw; transform: translate(-50%, -50%); display: flex; }
.rp-wordmark svg { width: 100%; height: auto; }
.rp-corner { position: absolute; bottom: 1.8cqw; display: flex; gap: 3cqw; font: var(--rp-weight-regular) var(--rp-type-small) / var(--rp-lh-small) var(--rp-sans); letter-spacing: var(--rp-track-small); }
.rp-corner--l { left: var(--rp-margin); width: calc(4 * var(--rp-step) - var(--rp-gutter)); }
.rp-corner--m { left: calc(var(--rp-margin) + 4 * var(--rp-step)); width: calc(4 * var(--rp-step) - var(--rp-gutter)); }
.rp-corner--r { left: calc(var(--rp-margin) + 8 * var(--rp-step)); width: calc(4 * var(--rp-step) - var(--rp-gutter)); }   /* three notes, one a main column (client review, 2026-11-06) */


/* ---------- Print: one page per sheet, no desk ---------- */

@media print {
  @page { size: 1600px 900px; margin: 0; }
  .rp-desk { background: none; }
  .rp-deck { gap: 0; padding: 0 !important; }   /* beats the screen's room for the page counter, which pushed the printed page 2.3% left */
  .rp-page { width: 100vw; break-after: page; }
  .rp-noprint { display: none !important; }
}

/* A brand illustration (a mascot) sits free on the page: no frame, never
   cropped, scaled to fit its box. One a page at most. */
.rp-mascot { z-index: 4; display: flex; align-items: flex-end; justify-content: center; }
.rp-mascot img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }

/* A logo dropped in as raw SVG fills its box by height. */
.rp-logo { display: flex; }
.rp-logo svg { height: 100%; width: auto; }

/* Height follows the content (a title, a paragraph) rather than a fixed --h. */
.rp-at--auto { height: auto; }

/* ---------- Viewer control: page count and two buttons, bottom right ---------- */

.rp-ctrl { position: fixed; z-index: 100; right: 0.7rem; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.4rem; border-radius: 999px; font: 500 0.75rem / 1 var(--rp-sans); color: #FFFFFF;
  /* one frosted glass panel (client, 2026-11-06: "add glass, it is too transparent") */
  background: rgba(14, 20, 30, 0.66); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.rp-ctrl__count { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.6rem 0; width: 2.375rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.08); letter-spacing: 0.04em; }
.rp-ctrl__count b { font-weight: 600; }
.rp-ctrl__count span { opacity: 0.5; }
.rp-ctrl__count::before { content: ''; order: 1; width: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.rp-ctrl__count span { order: 2; }
/* The control lives in a gutter on the right, so it never covers a page. */
@media (min-width: 700px) { .rp-deck { padding-right: calc(var(--rp-desk-gap) + 3.4rem); } }
/* A phone held upright: one slim glass bar along the bottom, clear of the pages (client, 2026-11-06: "it looks bad on mobile") */
@media (max-width: 699px) {
  .rp-ctrl { top: auto; right: auto; left: 50%; bottom: calc(0.6rem + env(safe-area-inset-bottom)); transform: translateX(-50%); flex-direction: row; gap: 0.3rem; padding: 0.3rem; }
  .rp-ctrl__count { flex-direction: row; width: auto; height: 2.25rem; padding: 0 0.75rem; gap: 0.4rem; }
  .rp-ctrl__count::before { width: 0; height: 0.8rem; border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.35); }
  .rp-ctrl .rp-ctrl__btn { width: 2.25rem; height: 2.25rem; }
  .rp-deck { padding-bottom: calc(3.85rem + env(safe-area-inset-bottom)); }   /* just the bar's height and its offset, no strip of desk under it */
}
/* A phone held sideways: the column on the right, smaller */
@media (min-width: 700px) and (max-height: 500px) {
  .rp-ctrl { gap: 0.25rem; padding: 0.3rem; }
  .rp-ctrl .rp-ctrl__btn { width: 2rem; height: 2rem; font-size: 0.875rem; }
  .rp-ctrl__count { width: 2rem; padding: 0.4rem 0; font-size: 0.6875rem; }
  .rp-deck { padding-right: calc(var(--rp-desk-gap) + 2.8rem); }
}

/* Zoom: a clicked page fills the screen (viewer.js) */
.rp-page { cursor: zoom-in; transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rp-page :is(a, button) { cursor: pointer; }
.rp-page.is-zoomed { z-index: 160; box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.55); }
.rp-zoom-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(6, 9, 14, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; cursor: zoom-out; }
.rp-zooming .rp-zoom-backdrop { opacity: 1; pointer-events: auto; }
.rp-zooming, .rp-zooming body { overflow: hidden; }
.rp-zooming .rp-ctrl { z-index: 170; }
.rp-zooming .rp-phone-note { visibility: hidden; }
.rp-zoom-close { position: fixed; z-index: 170; top: calc(0.7rem + env(safe-area-inset-top)); right: 0.7rem; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); color: #FFFFFF; font: 300 1.5rem / 1 var(--rp-sans); cursor: pointer; background: rgba(14, 20, 30, 0.66); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.rp-zooming .rp-zoom-close { opacity: 1; pointer-events: auto; }
@media (max-width: 699px) { .rp-zoom-close { top: calc(0.6rem + env(safe-area-inset-top)); } }
/* A zoomed page belongs to the fingers: no browser scroll or zoom under it; a grab hand once zoomed in */
.rp-page.is-zoomed { touch-action: none; cursor: zoom-in; }
.rp-page.is-zoomed.is-magnified { cursor: grab; }
.rp-page.is-zoomed.is-magnified:active { cursor: grabbing; }
.rp-zoom-hint { position: fixed; z-index: 170; left: 50%; top: calc(0.9rem + env(safe-area-inset-top)); transform: translateX(-50%); margin: 0; padding: 0.55rem 1rem; border-radius: 999px; color: #FFFFFF; font: 500 0.8125rem / 1 var(--rp-sans); white-space: nowrap; background: rgba(14, 20, 30, 0.66); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.18); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.rp-zoom-hint.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rp-page, .rp-zoom-backdrop { transition: none; } }
@media print { .rp-page { transition: none; transform: none !important; cursor: auto; } }
.rp-ctrl__btn { width: 2.375rem; height: 2.375rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); color: #FFFFFF; font: 400 1rem / 1 var(--rp-sans); cursor: pointer; transition: background-color 0.15s ease; }
.rp-ctrl__btn:hover { background: rgba(255, 255, 255, 0.2); }
.rp-ctrl__btn:disabled { opacity: 0.35; cursor: default; }

.rp-ctrl__pdf { display: flex; align-items: center; justify-content: center; font-size: 0.625rem; letter-spacing: 0.06em; text-decoration: none; }

/* On a phone the pages are tiny, so say so and offer the PDF. */
.rp-phone-note { display: none; }
@media (max-width: 699px) and (orientation: portrait) {
  .rp-phone-note { display: block; margin: 0; padding: 1rem 1.25rem; color: #FFFFFF; font: 400 0.9375rem / 1.45 var(--rp-sans); background: #16202E; position: sticky; top: 0; z-index: 101; }
  .rp-phone-note a { color: #FFFFFF; text-underline-offset: 0.2em; }
}

/* Grid toggle in the viewer control: lit while the guide is on. */
.rp-ctrl__grid { font-size: 0.625rem; letter-spacing: 0.06em; }
.rp-ctrl__grid[aria-pressed='true'] { background: #FF0040; border-color: #FF0040; }


/* ---------- Grid guide: 12 numbered columns (the Grid button, G, or ?grid) ----------
   The report grid is 12 equal columns between the margins with no gutter:
   the three Nayture columns are 1 to 4, 5 to 8 and 9 to 12, and the SPACE10
   half line falls between 6 and 7. viewer.js adds one .rp-cols to each page. */

.rp-cols {
  position: absolute;
  z-index: 50;
  inset: 0 var(--rp-margin);
  display: none;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--rp-gutter);
  pointer-events: none;
}
.rp-grid-on .rp-cols { display: grid; }
.rp-cols > span {
  display: flex;
  justify-content: center;
  padding-top: 0.45cqw;
  background: rgba(255, 0, 64, 0.1);
  box-shadow: inset max(1px, 0.06cqw) 0 0 rgba(255, 0, 64, 0.55), inset calc(-1 * max(1px, 0.06cqw)) 0 0 rgba(255, 0, 64, 0.55);
  font: 700 0.85cqw / 1 var(--rp-sans);
  color: #FF0040;
}
.rp-cols > span b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6cqw;
  height: 1.6cqw;
  border-radius: 999px;
  background: #FF0040;
  color: #FFFFFF;
  font-weight: 700;
}
/* The three main columns start on 1, 5 and 9; the half line starts 7. */
.rp-cols > span:nth-child(1), .rp-cols > span:nth-child(5), .rp-cols > span:nth-child(9) { box-shadow: inset max(2px, 0.14cqw) 0 0 #FF0040, inset calc(-1 * max(1px, 0.06cqw)) 0 0 rgba(255, 0, 64, 0.55); }
/* Header and bottom rules, across the whole page. */
.rp-cols::before, .rp-cols::after {
  content: '';
  position: absolute;
  left: calc(-1 * var(--rp-margin));
  right: calc(-1 * var(--rp-margin));
  border-top: max(1px, 0.06cqw) dashed #FF0040;
}
.rp-cols::before { top: var(--rp-head-h); display: var(--rp-cols-head, block); }
.rp-page:not(:has(.rp-head)) .rp-cols { --rp-cols-head: none; }
.rp-cols::after { top: var(--rp-foot-y); }
.rp-cols__note {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.6cqw;
  padding: 0.25cqw 0.6cqw;
  background: #FF0040;
  color: #FFFFFF;
  font: 600 0.75cqw / 1.2 var(--rp-sans);
  white-space: nowrap;
}

/* ---------- Promise rows: a number, a promise, the reason, on columns ---------- */
/* Sits in a region that starts on a column: the number takes one column, the
   promise three, the reason the rest, so each starts on its own column. */
.rp-promises { display: flex; flex-direction: column; gap: var(--rp-row-gap); } /* one promise a row, A to D (client, 2026-11-06) */
.rp-promise {
  position: relative;
  display: grid;
  grid-template-columns: var(--rp-step) calc(3 * var(--rp-step)) 1fr;
  align-items: center;     /* number, title and line in the middle of the row (client, 2026-11-06: always align in the middle) */
  height: var(--rp-row);
}
/* the rules sit in the middle of the gutter between two rows, clear of the text */
.rp-promise + .rp-promise::before,
.rp-promise:last-child::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  border-top: var(--rp-hair) solid var(--rp-rule);
}
.rp-promise + .rp-promise::before { top: calc(var(--rp-row-gap) / -2); }
.rp-promise:last-child::after { bottom: calc(var(--rp-row-gap) / -2); }
/* number, title and line at one size and line height (client, 2026-11-06) */
.rp-promise__n { font: var(--rp-weight-regular) var(--rp-type-body) / var(--rp-lh-body) var(--rp-sans); letter-spacing: var(--rp-track-body); color: var(--rp-promise-n, var(--rp-a2)); }
.rp-promise__t { font: var(--rp-weight-regular) var(--rp-type-body) / var(--rp-lh-body) var(--rp-sans); letter-spacing: var(--rp-track-body); padding-right: var(--rp-gutter); }
.rp-promise__d { font: var(--rp-weight-regular) var(--rp-type-body) / var(--rp-lh-body) var(--rp-sans); letter-spacing: var(--rp-track-body); }

/* No isolated text (client, 2026-11-06: "avoid isolated text"): titles share
   their words evenly across their lines, and running text never leaves one
   word or a very short last line on its own. */
.rp-page :is(h1, h2, h3, blockquote, .rp-cover-title, .rp-title, .rp-headline, .rp-statement, .rp-quote, .rp-opener-text, .rp-step__t, .rp-matrix__t) { text-wrap: balance; }
.rp-page :is(p, li) { text-wrap: pretty; }
/* short items (a list line, a card or table line) share their words evenly instead */
.rp-page :is(.rp-arrows li, .rp-promise > span, .rp-row > span, .rp-matrix__d, .rp-step__d) { text-wrap: balance; }

/* A line of text set by viewer.js for optical alignment: it keeps its own line. */
.rp-line { display: block; }
/* A picture inside a filled box takes the box's width, half a gutter past its columns. */
.rp-fig--fill { }

/* A fitted title keeps the lines it is given; the viewer sizes it to fill its columns. */
.rp-fit { white-space: nowrap; }

/* Grid guide rows: six numbered rows A to F with the column gutter, between the
   header rule and the bottom rule, drawn in blue so they read apart from the columns. */
.rp-rowsg {
  position: absolute;
  z-index: 49;
  left: 0;
  right: 0;
  top: var(--rp-frame-top);
  height: calc(var(--rp-frame-bottom) - var(--rp-frame-top));
  display: none;
  grid-template-rows: repeat(var(--rp-rows), 1fr);
  row-gap: var(--rp-row-gap);
  pointer-events: none;
}
.rp-grid-on .rp-rowsg { display: grid; }
.rp-rowsg > span {
  position: relative;
  background: rgba(0, 144, 255, 0.08);
  box-shadow: inset 0 max(1px, 0.06cqw) 0 rgba(0, 144, 255, 0.6), inset 0 calc(-1 * max(1px, 0.06cqw)) 0 rgba(0, 144, 255, 0.6);
}
.rp-rowsg > span b {
  position: absolute;
  left: 0.75cqw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6cqw;
  height: 1.6cqw;
  border-radius: 999px;
  background: #0090FF;
  color: #FFFFFF;
  font: 700 0.85cqw / 1 var(--rp-sans);
}

/* ---------- Type panel (type-panel.js): the type scale, live (client, 2026-11-06) ---------- */

.rp-type { position: fixed; z-index: 120; left: 0.75rem; top: 0.75rem; bottom: 0.75rem; width: 22rem; overflow: auto; display: flex; flex-direction: column; gap: 0.9rem; padding: 1rem; border-radius: 0.75rem; background: #0B0D10; color: #FFFFFF; font: 400 0.8125rem / 1.35 var(--rp-sans); box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.45); }
.rp-type[hidden] { display: none; }
.rp-type-on .rp-deck { padding-left: 23.5rem; }
.rp-type__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.rp-type__head b { font-size: 0.9375rem; }
.rp-type__head span, .rp-type small { color: rgba(255, 255, 255, 0.55); font-size: 0.6875rem; }
.rp-type__rows { display: flex; flex-direction: column; }
.rp-type__row { display: grid; grid-template-columns: 1fr 4.2rem 3.6rem 2rem; align-items: center; gap: 0.5rem; padding: 0.55rem 0.4rem; border-top: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.4rem; }
.rp-type__row:hover { background: rgba(255, 255, 255, 0.07); }
.rp-type__name { display: flex; flex-direction: column; }
.rp-type__name b { font-weight: 600; text-transform: capitalize; }
.rp-type__row label { display: flex; flex-direction: column; gap: 0.15rem; }
.rp-type input[type='number'] { width: 100%; padding: 0.3rem 0.35rem; border-radius: 0.35rem; border: 1px solid rgba(255, 255, 255, 0.2); background: #16202E; color: #FFFFFF; font: inherit; }
.rp-type__n { text-align: right; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.8); }
.rp-type__row--off.is-bad .rp-type__n, .rp-type__row--off.is-bad b { color: #FF5A6A; }
.rp-type__check { display: flex; align-items: center; gap: 0.5rem; }
.rp-type__actions { display: flex; gap: 0.5rem; }
.rp-type__actions button { flex: 1; padding: 0.5rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28); background: #16202E; color: #FFFFFF; font: 500 0.8125rem / 1 var(--rp-sans); cursor: pointer; }
.rp-type__note { margin: 0; color: rgba(255, 255, 255, 0.55); font-size: 0.6875rem; }
.rp-type-hl { outline: 2px solid #FF2D55; outline-offset: 2px; }
.rp-type-tag { position: absolute; z-index: 60; padding: 0.15cqw 0.4cqw; border-radius: 0.3cqw; background: #0B6BFF; color: #FFFFFF; font: 600 0.62cqw / 1 var(--rp-sans); white-space: nowrap; pointer-events: none; }
.rp-type-tag.is-bad { background: #FF2D55; }
.rp-type__move { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.rp-type__sel { margin: 0; padding: 0.5rem 0.6rem; border-radius: 0.4rem; background: #16202E; font-size: 0.75rem; }
.rp-moving .rp-page { cursor: move; }
.rp-moving .rp-page a { pointer-events: auto; }
.rp-move-sel { outline: 2px dashed #00C2A8 !important; outline-offset: 3px; }
.rp-move-badge { position: fixed; z-index: 121; left: 50%; top: 0.75rem; transform: translateX(-50%); margin: 0; padding: 0.45rem 0.75rem; border-radius: 999px; background: #FF2D55; color: #FFFFFF; font: 600 0.75rem / 1 var(--rp-sans); }
.rp-move-badge[hidden] { display: none; }
.rp-type__pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.rp-type__pad button { padding: 0.5rem 0; border-radius: 0.4rem; border: 1px solid rgba(255, 255, 255, 0.28); background: #16202E; color: #FFFFFF; font: 600 0.875rem / 1 var(--rp-sans); cursor: pointer; }
.rp-type__pad button:hover { background: #22324A; }
.rp-type__pad button:nth-child(n + 5) { grid-column: span 2; font-size: 0.75rem; }
.rp-type__sel.is-bad { background: #4A1220; color: #FFD0D7; }
.rp-stars { color: var(--rp-a2); }
.rp-divider--light { color: #FFFFFF; }

/* One layout everywhere (client, 2026-11-06: "the gap is still showing on safari"). viewer.js puts each page in a
   holder the size the page used to be, lays the page out at the PDF's own 1600 x 900, and scales it to fit. At a
   phone's 350px, browsers round tiny letters and lines to whole pixels, each its own way, so lines wrapped
   differently in Safari and Chrome; at 1600 every phone, browser and the PDF share one layout. */
.rp-fixed .rp-hold { position: relative; flex: none; width: min(100%, calc((100svh - 2 * var(--rp-desk-gap)) * 16 / 9)); aspect-ratio: 16 / 9; }
.rp-fixed .rp-hold > .rp-page { position: absolute; left: 0; top: 0; width: 1600px; scale: var(--rp-s, 1); transform-origin: 0 0; }
.rp-fixed .rp-hold.is-lifted { z-index: 160; transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rp-fixed .rp-hold { transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rp-fixed .rp-hold > .rp-page { transition: none; }
@media print { .rp-fixed .rp-hold { width: 100vw; transform: none !important; } .rp-fixed .rp-hold > .rp-page { position: relative; width: 100vw; scale: none; } }
@media (prefers-reduced-motion: reduce) { .rp-fixed .rp-hold { transition: none; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Safari shows the root's own background past the end of the content and around its toolbar: the desk's, not white */
html:has(> body.rp-desk) { background: var(--rp-desk); }
