/* ==========================================================================
   Nigeria's Economy – digital flyer
   One sheet of paper on a flag-green desk. Front + back, tri-fold creases.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* palette – one colour family (flag of Nigeria) */
  --green: #0B6E3A;
  --green-desk: #0A6334;
  --green-deep: #074A27;
  --green-ink: #053A1E;
  --mint: #E8F3EC;
  --mint-line: #CFE5D7;
  --white: #FFFFFF;
  --paper: #FFFFFF;
  --ink: #1E1E1E;
  --ink-soft: #3E4A43;
  --sand: #F2E6C9;
  --sand-deep: #E3D2A6;
  --on-green-soft: #CFE5D7;
  --wrong: #A3261D;
  --wrong-bg: #FBEAE7;

  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  /* web-scale type (spec): hero 56 / section 32 / subtitle 20 / text 18 / footnote 12 */
  --fs-hero: 56px;
  --fs-section: 32px;
  --fs-sub: 20px;
  --fs-text: 18px;
  --fs-fn: 12px;

  --nav-h: 56px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --paper-shadow:
    0 1.5px 0 #D5DED8,
    0 3px 3px -1px rgba(2, 22, 11, .45),
    0 1px 1px rgba(3, 30, 15, .25),
    0 6px 14px -4px rgba(3, 30, 15, .35),
    0 30px 60px -22px rgba(2, 22, 11, .65);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-text);
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--green-desk);
  /* the desk: flag green with a soft pool of light and fine grain */
  background-image:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .07), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  text-rendering: optimizeLegibility;
}

::selection { background: var(--sand); color: var(--green-ink); }

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }

a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
  border-radius: 4px;
}
.sheet :focus-visible,
.sheet-card :focus-visible {
  outline-color: var(--green);
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--white);
  color: var(--green);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip:focus { top: 12px; }

/* footnotes: small green superscript numbers ------------------------------ */
sup.fn {
  font-size: var(--fs-fn);
  line-height: 0;
  vertical-align: super;
  margin-left: .08em;
  color: var(--green);
  font-weight: 600;
  font-variant-numeric: lining-nums;
}
sup.fn a {
  color: inherit;
  text-decoration: none;
  padding: 0 .06em;
}
sup.fn a:hover { text-decoration: underline; }
sup.fn-gap { margin-left: .05em; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-deep);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .5);
}
.topnav {
  max-width: 1100px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand::before {
  content: "";
  width: 18px; height: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 0 33.3%, var(--white) 33.3% 66.6%, var(--green) 66.6%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5);
}
.topnav ul {
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  display: flex;
  gap: 2px;
  min-width: 0;
}
.topnav li a {
  display: block;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--on-green-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background-color .2s, color .2s;
}
.topnav li a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.topnav li a[aria-current="true"] { color: var(--green-ink); background: var(--sand); }

.side-switch {
  flex: none;
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.side-switch button {
  border: 0;
  cursor: pointer;
  padding: 6px 13px;
  border-radius: 999px;
  background: transparent;
  color: var(--on-green-soft);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  transition: background-color .25s, color .25s;
}
.side-switch button:hover { color: var(--white); }
.side-switch button[aria-pressed="true"] { background: var(--white); color: var(--green-ink); }

@media screen and (max-width: 860px) {
  .topnav { gap: 12px; }
  .side-switch button { padding: 6px 10px; font-size: 12px; }
  .brand span { display: none; }
  .topnav ul {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
    padding-right: 24px;
  }
  .topnav ul::-webkit-scrollbar { display: none; }
  .topnav li a { padding: 8px 10px; font-size: 14px; white-space: nowrap; }
}
@media screen and (max-width: 600px) {
  :root { --nav-h: 96px; }
  .topnav { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 6px; row-gap: 4px; }
  .brand { font-size: 15px; }
  .side-switch { margin-left: auto; }
  .topnav ul {
    order: 3;
    flex: 1 0 100%;
    margin: 0 -16px;
    padding: 0 40px 0 16px;
    -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 99%);
            mask-image: linear-gradient(90deg, #000 78%, transparent 99%);
  }
  .topnav li a { padding: 7px 10px; }
}

/* ==========================================================================
   Stage + sheet (the flyer)
   ========================================================================== */
.stage {
  padding: 40px 0 24px;
}
.sheet-wrap {
  max-width: 1132px;
  margin: 0 auto;
  padding: 0 16px;
}

.sheet {
  /* flyer type scale lives in the sheet's own coordinates (1cqi = 1 % of sheet width) */
  --fs: 1.32cqi;
  --fs-s: 1.1cqi;
  --fs-xs: .92cqi;
  --fs-h2: 2.15cqi;
  --fs-h3: 1.32cqi;
  --fs-num: 1.9cqi;
  --fs-fn: .95cqi;
  --pad: 2.2cqi;
  --gap: 1.05cqi;
  --r: 1.45cqi;           /* 16px at full size */
  --r-s: .7cqi;

  position: relative;
  container-type: inline-size;
  display: grid;
  border-radius: 3px;
  box-shadow: var(--paper-shadow);
  background: var(--paper);
}

.side {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 1fr;
  position: relative;
  background-color: var(--paper);
  border-radius: 3px;
  overflow: hidden;
  font-size: var(--fs);
  line-height: 1.42;
}
.side-back { grid-template-rows: 1fr auto; }

.sheet[data-side="front"] > .side-back,
.sheet[data-side="back"] > .side-front { visibility: hidden; }

/* paper: faint grain + tri-fold creases, lit like real folds */
.side::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    /* valley fold at 1/3: soft shadow into a dark crease line */
    linear-gradient(90deg,
      transparent calc(33.333% - 3cqi),
      rgba(8, 36, 18, .07) calc(33.333% - .5cqi),
      rgba(8, 36, 18, .26) 33.333%,
      rgba(8, 36, 18, .1) calc(33.333% + .35cqi),
      rgba(8, 36, 18, .03) calc(33.333% + 1.6cqi),
      transparent calc(33.333% + 3.2cqi)),
    /* mountain fold at 2/3: lit ridge, shadow falling to the right */
    linear-gradient(90deg,
      transparent calc(66.666% - 2.6cqi),
      rgba(255, 255, 255, .5) calc(66.666% - .25cqi),
      rgba(255, 255, 255, .95) calc(66.666% - .04cqi),
      rgba(8, 36, 18, .2) calc(66.666% + .06cqi),
      rgba(8, 36, 18, .09) calc(66.666% + .8cqi),
      rgba(8, 36, 18, .03) calc(66.666% + 2.4cqi),
      transparent calc(66.666% + 4.5cqi)),
    /* each panel catches the light at its own angle */
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%, rgba(8, 36, 18, .035) 33.333%,
      rgba(8, 36, 18, .05) 33.333%, rgba(8, 36, 18, .01) 66.666%,
      rgba(8, 36, 18, .045) 66.666%, rgba(8, 36, 18, 0) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .15 0 0 0 0 .1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}

/* panels -------------------------------------------------------------- */
.panel {
  position: relative;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
}
.panel > section { display: flex; flex-direction: column; gap: var(--gap); }
.panel-split { gap: calc(var(--gap) * 1.6); }
.panel-split > section + section {
  padding-top: calc(var(--gap) * 1.6);
  border-top: 2px solid var(--mint-line);
}

.panel h2:not(.cover-title) {
  font-size: var(--fs-h2);
  color: var(--green);
  margin-bottom: calc(var(--gap) * .1);
}
.panel h3 {
  font-size: var(--fs-h3);
  color: var(--green-ink);
  line-height: 1.2;
}
.panel p { hyphens: auto; }
.panel strong { font-weight: 700; }

.author {
  margin-top: auto !important;
  text-align: right;
  font-style: italic;
  color: var(--ink-soft);
  font-size: var(--fs-s);
  padding-top: calc(var(--gap) * .3);
}
.panel-split .author { margin-top: 0 !important; }
.panel-split > section:last-child { flex: 1; }
.panel-split > section:last-child .author { margin-top: auto !important; }

.photo {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  border-radius: var(--r-s);
  background: var(--mint);
}
.photo-short { aspect-ratio: 16 / 6.6; }
#solutions .photo-short { aspect-ratio: 16 / 5; }
/* on the shorter side, pictures take up the slack so every column ends together */
.grow { flex: 1 1 0; min-height: 0; }
.map.grow { max-height: 27cqi; }
.map.grow img { height: 100%; min-height: 13.5cqi; }
.photo-pair.grow { max-height: 22cqi; }
.photo-pair.grow img { height: 100%; aspect-ratio: auto; min-height: 10cqi; }
.photo.grow { flex: 1 1 0; aspect-ratio: auto; min-height: 15cqi; max-height: 30cqi; height: auto; }

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--gap) * .6);
}
.photo-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-s);
  background: var(--mint);
}
.photo-pair img:last-child { object-position: 50% 62%; }

/* cover --------------------------------------------------------------- */
.panel-cover {
  color: var(--white);
  padding: 0;
  overflow: hidden;
  background: var(--green-ink);
}
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
  filter: saturate(1.15) contrast(1.06);
}
.panel-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 34, 18, .9) 0%, rgba(4, 34, 18, .84) 46%, rgba(4, 34, 18, .35) 60%, rgba(4, 34, 18, 0) 74%, rgba(3, 28, 14, .5) 100%);
}
.cover-body {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: calc(var(--pad) * 1.15) var(--pad) var(--pad);
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) * 1.2);
}
.cover-title {
  font-size: 4.25cqi;
  line-height: .98;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: initial;
}
.cover-title span { display: block; color: var(--sand); }
.cover-sub {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.75cqi;
  line-height: 1.25;
  color: var(--white);
  max-width: 18ch;
}
.cover-teaser {
  font-size: var(--fs);
  color: rgba(255, 255, 255, .92);
}
.panel-cover sup.fn { color: var(--sand); }
.big-number {
  border-top: 1px solid rgba(242, 230, 201, .35);
  padding-top: calc(var(--gap) * 1.1);
}
.big-number-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 4.1cqi;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--sand);
  font-variant-numeric: lining-nums;
}
.big-number-text {
  margin-top: calc(var(--gap) * .6);
  font-size: var(--fs);
  color: var(--white);
  font-weight: 600;
}
.cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-top: calc(var(--gap) * .4);
  padding: .62em 1.15em;
  border-radius: 999px;
  background: var(--sand);
  color: var(--green-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-s);
  text-decoration: none;
  transition: background-color .2s, transform .25s var(--ease-out);
}
.cta svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.cta:hover { background: var(--white); }
.cta:hover svg { transform: translateX(3px); }
.panel-cover .cta:focus-visible { outline-color: var(--sand); }
.imprint {
  margin-top: auto;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .72);
  letter-spacing: .01em;
}

/* at a glance ---------------------------------------------------------- */
.map {
  margin: 0;
  display: flex;
  justify-content: center;
}
.map img {
  width: auto;
  height: 13.5cqi;
  mix-blend-mode: multiply;
}
.fact-file {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--mint-line);
}
.fact-file > div {
  display: grid;
  grid-template-columns: 31% 1fr;
  gap: .8cqi;
  padding: .42cqi 0 .48cqi;
  border-bottom: 1px solid var(--mint-line);
}
.fact-file dt {
  font-weight: 700;
  color: var(--green);
  font-size: var(--fs-s);
  line-height: 1.3;
  padding-top: .1cqi;
}
.fact-file dd { margin: 0; line-height: 1.32; }

/* economy chart -------------------------------------------------------- */
.chart {
  margin: 0;
  display: grid;
  gap: .55cqi;
  padding: 1cqi 1.1cqi 1.05cqi;
  background: var(--mint);
  border-radius: var(--r);
}
.chart figcaption {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--green-ink);
  margin-bottom: .15cqi;
}
.bar {
  display: grid;
  grid-template-columns: 9.4cqi 1fr auto;
  grid-template-areas: "label track value" ". note note";
  align-items: center;
  column-gap: .8cqi;
  font-size: var(--fs-s);
  line-height: 1.2;
}
.bar-label { grid-area: label; font-weight: 600; }
.bar-track { grid-area: track; height: 1.15cqi; background: rgba(11, 110, 58, .12); border-radius: 99px; overflow: hidden; }
.bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--green);
  border-radius: 99px;
  transform-origin: left;
}
.bar-digital .bar-fill { width: 83.3%; }  /* 20 / 24 */
.bar-oil .bar-fill { width: 23.75%; }     /* 5.7 / 24 */
.bar-value { grid-area: value; font-family: var(--font-head); font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.bar-note { grid-area: note; font-size: var(--fs-xs); color: var(--ink-soft); }

/* number cards --------------------------------------------------------- */
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7cqi;
}
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-col { grid-template-columns: 1fr; align-content: stretch; }
.stats li {
  background: var(--mint);
  border-radius: var(--r);
  padding: .85cqi .9cqi .9cqi;
  font-size: var(--fs-s);
  line-height: 1.22;
  color: var(--ink-soft);
}
.stats strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-num);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--green);
  margin-bottom: .3cqi;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.stats-3 strong { font-size: 1.3cqi; letter-spacing: -0.03em; }
.stats-3 li { padding-left: .75cqi; padding-right: .6cqi; }

/* before / after ------------------------------------------------------- */
.before-after {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55cqi;
}
.before-after li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label values" "note note";
  align-items: baseline;
  column-gap: .8cqi;
  background: var(--mint);
  border-radius: var(--r);
  padding: .7cqi 1cqi .75cqi;
}
.ba-label { grid-area: label; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-s); color: var(--green-ink); }
.ba-values {
  grid-area: values;
  display: inline-flex;
  align-items: center;
  gap: .35cqi;
  font-family: var(--font-head);
  font-weight: 700;
  font-variant-numeric: lining-nums;
}
.ba-values s { color: var(--ink-soft); font-weight: 600; font-size: var(--fs-s); text-decoration-thickness: 1.5px; }
.ba-values strong { color: var(--green); font-size: var(--fs-num); letter-spacing: -0.02em; line-height: 1; }
.ba-values svg { width: 1.2cqi; height: 1.2cqi; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba-note { grid-area: note; font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.25; }

/* recovery box --------------------------------------------------------- */
.recovery {
  background: var(--mint);
  border-radius: var(--r);
  padding: 1cqi 1.1cqi 1.05cqi;
}
.recovery h3 { margin-bottom: .45cqi; }
.recovery ul { margin: 0; padding-left: 1.15em; display: grid; gap: .25cqi; font-size: var(--fs-s); line-height: 1.3; }
.recovery li::marker { color: var(--green); }
.recovery li:last-child { font-weight: 600; color: var(--green-ink); }

/* thinking question: speech bubble ------------------------------------- */
.bubble {
  position: relative;
  background: var(--sand);
  border-radius: 1.8cqi;
  padding: 1cqi 1.25cqi 1.05cqi;
  margin-bottom: 1.4cqi;
  font-weight: 600;
  color: var(--green-ink);
  line-height: 1.3;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 2.4cqi;
  bottom: -1.2cqi;
  width: 2.2cqi;
  height: 1.4cqi;
  background: var(--sand);
  clip-path: polygon(0 0, 100% 0, 15% 100%);
}

/* solutions ------------------------------------------------------------ */
.helpers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .78cqi;
}
.helpers li {
  display: grid;
  grid-template-columns: 2.5cqi 1fr;
  gap: .85cqi;
  align-items: start;
}
.helpers svg {
  width: 2.5cqi;
  height: 2.5cqi;
  padding: .45cqi;
  border-radius: 50%;
  background: var(--mint);
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.helpers li > div { font-size: var(--fs-s); line-height: 1.3; }
.helpers h3, .helpers p { display: inline; font-size: inherit; line-height: inherit; }
.helpers h3 { font-family: var(--font-head); color: var(--green-ink); }

/* outlook -------------------------------------------------------------- */
.outlook-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: .7cqi;
}
.outlook-row .photo { aspect-ratio: auto; height: 100%; min-height: 9cqi; }
.outlook-row .stats li { padding: .6cqi .8cqi .65cqi; }
.outlook-row .stats strong { font-size: 1.62cqi; }
.final-question {
  background: var(--green);
  color: var(--white);
  border-radius: var(--r);
  padding: 1.05cqi 1.2cqi 1.1cqi;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.24cqi;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

/* sources strip on the back ------------------------------------------- */
.sheet-sources {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--mint-line);
  background: linear-gradient(180deg, rgba(232, 243, 236, .55), rgba(232, 243, 236, .25));
}
.sheet-sources > p,
.ss-last {
  padding: .9cqi var(--pad) 1cqi;
  font-size: var(--fs-xs);
  line-height: 1.3;
  color: var(--ink-soft);
}
.ss-last { position: relative; padding-right: calc(var(--pad) + 6.4cqi); }
.ss-last p { font-size: inherit; }
.ss-n {
  display: inline-block;
  margin-right: .35em;
  font-weight: 700;
  color: var(--green);
  font-size: .85em;
  vertical-align: .3em;
}
.ss-quiz {
  display: block;
  margin-top: .35cqi;
  text-decoration: none;
  color: var(--green-ink);
  font-weight: 700;
}
.ss-quiz .qr-url { font-weight: 400; color: var(--ink-soft); overflow-wrap: anywhere; }
.ss-quiz .qr { position: absolute; right: var(--pad); top: .9cqi; }
.qr { display: block; width: 5.4cqi; aspect-ratio: 1; }
.qr svg { width: 100%; height: 100%; }
.qr svg path, .qr svg rect[fill="black"] { fill: var(--green-ink); }

/* ==========================================================================
   Flip control
   ========================================================================== */
.flip-bar {
  position: relative;
  z-index: 20;
  max-width: 1100px;
  margin: 22px auto 0;
  padding: 0 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.flip-bar > * { pointer-events: auto; }
.side-label {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
  color: var(--white);
  background: var(--green-ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.flip-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  padding: 14px 24px 14px 20px;
  border-radius: 999px;
  background: var(--white);
  color: var(--green-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 10px 26px -8px rgba(0, 0, 0, .55);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .2s;
}
.flip-btn svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--ease-out);
}
.flip-btn:hover { transform: translateY(-2px); background: var(--sand); }
.flip-btn:hover svg { transform: rotate(-200deg); }
.flip-btn:active { transform: translateY(0) scale(.98); }
.flip-btn[aria-busy="true"] { cursor: progress; }
.flip-btn:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }

/* ==========================================================================
   Origami rig (built by JS only while the sheet turns over)
   ========================================================================== */
.sheet.is-animating { box-shadow: none; background: transparent; }
.sheet.is-animating > .side { visibility: hidden !important; }

.rig {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  perspective: 2600px;
}
.rig-shadow {
  position: absolute;
  inset: 2% 1% -1%;
  border-radius: 6px;
  background: rgba(2, 22, 11, .55);
  filter: blur(22px);
  transform-origin: 50% 50%;
}
.rig-stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
}
.leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(100% / 3);
  transform-style: preserve-3d;
}
.leaf[data-i="0"] { left: 0; transform-origin: 100% 50%; }
.leaf[data-i="1"] { left: calc(100% / 3); transform-origin: 50% 50%; }
.leaf[data-i="2"] { left: calc(200% / 3); transform-origin: 0 50%; }
.face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.face.back { transform: rotateY(180deg); }
.leaf[data-i="0"] .face.front { border-radius: 3px 0 0 3px; }
.leaf[data-i="2"] .face.front { border-radius: 0 3px 3px 0; }
.rig-slice {
  position: absolute;
  top: 0;
  height: 100%;
  width: 300%;
  container-type: inline-size;
}
.rig-slice > .side { visibility: visible; height: 100%; }
.shade {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: linear-gradient(90deg, rgba(4, 30, 15, .55), rgba(4, 30, 15, .35));
  opacity: 0;
}
.face.back .shade { background: linear-gradient(270deg, rgba(4, 30, 15, .55), rgba(4, 30, 15, .35)); }

/* ==========================================================================
   Paper cards below the flyer (did you know, quiz, sources, appendix)
   ========================================================================== */
.dyk {
  max-width: 1100px;
  margin: 72px auto 0;
  padding: 0 16px;
}
.dyk h2,
.appendix-title {
  font-size: var(--fs-section);
  color: var(--white);
  text-align: center;
  margin-bottom: 28px;
}
.circles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.circles li {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sand);
  display: grid;
  place-items: center;
  padding: 15%;
  text-align: center;
  box-shadow: inset 0 -6px 14px rgba(140, 110, 40, .12), 0 1px 1px rgba(0, 0, 0, .18), 0 14px 26px -12px rgba(0, 0, 0, .55);
}
.circles p {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--green-ink);
}
.circles sup.fn { color: var(--green); }

.sheet-card {
  position: relative;
  max-width: 820px;
  margin: 72px auto 0;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: var(--paper-shadow);
  padding: 48px 56px 52px;
}
@media screen and (max-width: 999px) {
  .sheet-card { margin-left: 16px; margin-right: 16px; }
}
.sheet-card h2 {
  font-size: var(--fs-section);
  color: var(--green);
}

/* quiz ------------------------------------------------------------------ */
.quiz-intro { margin-top: 8px; font-size: var(--fs-sub); color: var(--ink-soft); }
.quiz-app { margin-top: 28px; }
.quiz-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--mint);
  overflow: hidden;
}
.quiz-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  border-radius: 99px;
  transition: width .5s var(--ease-out);
}
.quiz-count {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.quiz-q { border: 0; margin: 6px 0 0; padding: 0; min-width: 0; }
.quiz-q legend {
  padding: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}
.quiz-options { margin-top: 20px; display: grid; gap: 10px; }
.quiz-opt {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px 12px 12px;
  border: 2px solid var(--mint-line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-text);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease-out);
}
.quiz-opt:hover:not(:disabled) { border-color: var(--green); background: #F7FBF8; }
.quiz-opt:active:not(:disabled) { transform: scale(.99); }
.quiz-letter {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--green);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
}
.quiz-mark { width: 24px; height: 24px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.is-correct { border-color: var(--green); background: var(--mint); }
.quiz-opt.is-correct .quiz-letter { background: var(--green); color: var(--white); }
.quiz-opt.is-correct .quiz-mark { stroke: var(--green); }
.quiz-opt.is-wrong { border-color: var(--wrong); background: var(--wrong-bg); }
.quiz-opt.is-wrong .quiz-letter { background: var(--wrong); color: var(--white); }
.quiz-opt.is-wrong .quiz-mark { stroke: var(--wrong); }
.quiz-opt.is-muted { opacity: .55; }
.quiz-feedback { min-height: 28px; margin-top: 16px; font-weight: 600; }
.quiz-feedback.ok { color: var(--green); }
.quiz-feedback.no { color: var(--wrong); }
.quiz-actions { margin-top: 8px; display: flex; justify-content: flex-end; }
.quiz-result { text-align: center; padding: 8px 0 4px; }
.quiz-score {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  color: var(--green);
  outline: none;
}
.quiz-verdict { margin: 6px 0 20px; color: var(--ink-soft); }
.quiz-result[hidden], .quiz-app [hidden] { display: none; }
.quiz-print { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, transform .25s var(--ease-out);
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-solid { background: var(--green); color: var(--white); }
.btn-solid:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-solid:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* sources ---------------------------------------------------------------- */
.source-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: src;
  display: grid;
  gap: 16px;
}
.source-list li {
  counter-increment: src;
  position: relative;
  padding-left: 42px;
  font-size: 17px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  scroll-margin-top: calc(var(--nav-h) + 24px);
  border-radius: 8px;
  transition: background-color .6s;
}
.source-list li::before {
  content: counter(src);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
}
.source-list li:target { background: var(--mint); box-shadow: 0 0 0 8px var(--mint); }
.credits {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--mint-line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* footer ----------------------------------------------------------------- */
.footer {
  margin-top: 72px;
  background: var(--green-deep);
  color: var(--on-green-soft);
  text-align: center;
  padding: 26px 16px;
  font-size: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

/* appendix --------------------------------------------------------------- */
.appendix { padding-bottom: 88px; }
.appendix .sheet-card:first-child { margin-top: 64px; }

.vocab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.table-scroll { overflow-x: auto; border-radius: 10px; border: 1px solid var(--mint-line); }
.table-scroll:focus-visible { outline: 3px solid var(--green); }
.vocab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.35;
  min-width: 560px;
}
.vocab-table th {
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  padding: 11px 14px;
}
.vocab-table td { padding: 9px 14px; border-top: 1px solid var(--mint-line); vertical-align: top; }
.vocab-table tbody tr:nth-child(even) td { background: #F5FAF7; }
.vocab-table td:first-child { font-weight: 600; color: var(--green-ink); }
.vocab-table td:last-child { color: var(--ink-soft); }

/* ==========================================================================
   Narrow screens: the sheet unfolds into one long column
   ========================================================================== */
@media screen and (max-width: 999px) {
  .stage { padding-top: 24px; }
  .sheet-wrap { max-width: 720px; }
  .sheet {
    --fs: var(--fs-text);
    --fs-s: 16px;
    --fs-xs: 14px;
    --fs-h2: clamp(26px, 6.4vw, 32px);
    --fs-h3: 18px;
    --fs-num: 26px;
    --fs-fn: 12px;
    --pad: clamp(20px, 5vw, 32px);
    --gap: 14px;
    --r: 16px;
    --r-s: 8px;
  }
  .side { grid-template-columns: 1fr; grid-template-rows: auto; }
  .side-back { grid-template-rows: auto; }
  .sheet[data-side="front"] > .side-back,
  .sheet[data-side="back"] > .side-front { display: none; }
  .side::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .15 0 0 0 0 .1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  }
  .panel + .panel { border-top: 1px dashed var(--mint-line); }
  .panel { padding-top: calc(var(--pad) + 6px); padding-bottom: calc(var(--pad) + 6px); }

  .panel-cover { min-height: min(760px, 100svh); }
  .cover-body { min-height: min(760px, 100svh); gap: 16px; }
  .cover-title { font-size: 36px; }
  .cover-sub { font-size: var(--fs-sub); }
  .big-number-value { font-size: 44px; }
  .cta { font-size: 16px; }
  .imprint { font-size: 13px; }

  .map img { height: 200px; }
  .fact-file > div { gap: 12px; padding: 7px 0 8px; grid-template-columns: 34% 1fr; }
  .fact-file dt { font-size: 15px; }
  .chart { gap: 10px; padding: 16px 16px 18px; }
  .bar { grid-template-columns: 110px 1fr auto; column-gap: 10px; }
  .bar-track { height: 12px; }
  .stats { gap: 10px; }
  .stats li { padding: 12px 14px 14px; }
  .stats-3 strong, .outlook-row .stats strong { font-size: 22px; }
  .stats strong { margin-bottom: 4px; white-space: normal; }
  .before-after { gap: 8px; }
  .before-after li { padding: 10px 14px 12px; column-gap: 10px; }
  .ba-values { gap: 6px; }
  .ba-values svg { width: 16px; height: 16px; }
  .recovery { padding: 16px 18px 18px; }
  .recovery h3 { margin-bottom: 8px; }
  .recovery ul { gap: 4px; }
  .bubble { border-radius: 22px; padding: 14px 18px 16px; margin-bottom: 18px; }
  .bubble::after { left: 28px; bottom: -14px; width: 26px; height: 16px; }
  .helpers { gap: 14px; }
  .helpers li { grid-template-columns: 40px 1fr; gap: 12px; }
  .helpers svg { width: 40px; height: 40px; padding: 8px; }
  .outlook-row { gap: 10px; }
  .outlook-row .photo { min-height: 150px; }
  .outlook-row .stats li { padding: 10px 12px 12px; }
  .final-question { font-size: 19px; padding: 16px 18px 18px; }

  .sheet-sources { grid-template-columns: 1fr; }
  .sheet-sources > p, .ss-last { padding: 12px var(--pad); font-size: 13px; }
  .sheet-sources > p + p, .ss-last { border-top: 1px solid var(--mint-line); }
  .ss-last { padding-right: calc(var(--pad) + 84px); }
  .ss-quiz { font-size: 13px; }
  .ss-quiz .qr { top: 12px; }
  .qr { width: 72px; }
  .grow { flex: none; }
  .photo-pair.grow, .map.grow { max-height: none; }
  .photo-pair.grow img { aspect-ratio: 4 / 3; height: auto; }
  .photo.grow { flex: none; aspect-ratio: 16 / 9; min-height: 0; max-height: none; }
  .map.grow img { height: 200px; }
  .ss-n { font-size: 11px; }

  .flip-bar { justify-content: center; }

  .sheet-card { padding: 32px 22px 36px; }
  .quiz-q legend { font-size: 21px; }
}

@media screen and (max-width: 640px) {
  .table-scroll { overflow: visible; }
  .vocab-table { min-width: 0; }
  .vocab-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .vocab-table tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--mint-line); padding: 8px 12px 10px; column-gap: 12px; }
  .vocab-table tbody tr:nth-child(even) { background: #F5FAF7; }
  .vocab-table tbody tr:nth-child(even) td { background: none; }
  .vocab-table td { border: 0; padding: 0; }
  .vocab-table td:last-child { grid-column: 1 / -1; margin-top: 3px; font-size: 15px; }
  .vocab-table td.no-expl { display: none; }
}
@media screen and (max-width: 760px) {
  .circles { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .circles p { font-size: 15px; }
  .circles li { padding: 13%; }
}
@media screen and (max-width: 420px) {
  .stats-3 { grid-template-columns: 1fr; }
  .stats-2 { grid-template-columns: 1fr 1fr; }
  .outlook-row { grid-template-columns: 1fr; }
  .outlook-row .stats { grid-template-columns: 1fr 1fr; }
  .bar { grid-template-columns: 92px 1fr auto; }
  .circles p { font-size: 14px; }
  .sheet-card h2, .dyk h2, .appendix-title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ==========================================================================
   Print: flyer = 2 A4 landscape pages, appendix on its own portrait pages
   ========================================================================== */
@page { size: A4 landscape; margin: 10mm; }
@page appendix { size: A4 portrait; margin: 14mm 14mm 16mm; }

@media print {
  html { scroll-behavior: auto; }
  body {
    background: #fff;
    -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
    font-size: 11pt;
  }
  .topbar, .skip, .flip-bar, .dyk, .quiz, .sources, .footer, .cta, .rig { display: none !important; }

  .stage { padding: 0; }
  .sheet-wrap { max-width: none; padding: 0; }
  .sheet {
    display: block;
    width: 277mm;
    margin: 0 auto;
    box-shadow: none;
    border-radius: 0;
    /* print: wider columns, type set in points for paper */
    --fs: 8.1pt;
    --fs-s: 7.3pt;
    --fs-xs: 6.7pt;
    --fs-h2: 12.5pt;
    --fs-h3: 8.1pt;
    --fs-num: 11pt;
    --fs-fn: 6pt;
    --pad: 4mm;
    --gap: 1.35mm;
    --r: 3.2mm;
    --r-s: 1.6mm;
  }
  .side { line-height: 1.3; }
  .photo { aspect-ratio: 16 / 5; }
  .photo-short, #solutions .photo-short { aspect-ratio: 16 / 3.1; }
  .photo.grow { max-height: 30mm; min-height: 20mm; }
  .photo-pair.grow { max-height: 34mm; }
  .photo-pair.grow img { min-height: 22mm; }
  .map.grow { max-height: 44mm; }
  .map.grow img { min-height: 30mm; }
  .cover-title { font-size: 25pt; }
  .cover-sub { font-size: 12pt; }
  .big-number-value { font-size: 24pt; }
  .stats li, .before-after li { padding: 1.6mm 2mm 1.8mm; }
  .stats strong { margin-bottom: .6mm; }
  .stats-3 strong, .outlook-row .stats strong { font-size: 10pt; }
  .outlook-row .photo { min-height: 15mm; }
  .outlook-row .stats li { padding: 1.2mm 2mm 1.3mm; }
  .chart, .recovery { padding: 2mm 2.4mm 2.2mm; gap: 1mm; }
  .bar { grid-template-columns: 22mm 1fr auto; column-gap: 2mm; }
  .bar-track { height: 2.4mm; }
  .fact-file > div { padding: .8mm 0 .9mm; gap: 2mm; }
  .helpers { gap: 1.1mm; }
  .panel-split { gap: 2.2mm; }
  .panel-split > section + section { padding-top: 2mm; }
  .outlook-row .photo { max-height: 20mm; }
  .sheet-sources { align-items: start; }
  .helpers li { grid-template-columns: 6mm 1fr; gap: 2mm; }
  .helpers svg { width: 6mm; height: 6mm; padding: 1.1mm; }
  .bubble { padding: 2mm 3mm; margin-bottom: 3mm; border-radius: 4mm; }
  .bubble::after { left: 6mm; bottom: -2.8mm; width: 5mm; height: 3mm; }
  .final-question { font-size: 9pt; padding: 2.2mm 3mm; }
  .ss-quiz .qr { width: 14mm; top: 2mm; }
  .ss-last { padding-right: 20mm; }
  .side {
    visibility: visible !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    height: 189mm;
    font-size: var(--fs);
    outline: .3mm solid #d7e6dc;
    break-inside: avoid;
    border-radius: 0;
  }
  .side-front { break-after: page; }
  .side-back { grid-template-rows: 1fr auto !important; }
  .panel + .panel { border-top: 0; }
  .sheet-sources > p, .ss-last { font-size: 9pt !important; line-height: 1.15; padding-top: 1.3mm; padding-bottom: 1.4mm; }
  .ss-quiz { font-size: 7pt; }
  .stats li, .before-after li, .recovery, .chart, .bubble, .final-question, .helpers li, .fact-file > div { break-inside: avoid; }

  .appendix { padding: 0; }
  .appendix .sheet-card {
    page: appendix;
    break-before: page;
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .vocab-head .btn { display: none; }
  .table-scroll { overflow: visible; border: 0; }
  .vocab-table { min-width: 0; font-size: 10pt; }
  .vocab-table tr { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
