/* Kidsario prints like a risograph: a few spot inks on paper, slightly out of register. */
:root {
  --paper: #FBFAF7;
  --ink: #1F3A7A;
  --ink-soft: #4D5F8F;
  --blue: #0078BF;
  --pink: #FF48B0;
  --sun: #FFB511;
  --orange: #FF6C2F;
  --wash: #E4EEF8;
  --line: #C3D2E8;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' 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 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Bagel Fat One has no Greek; Andika, made for children learning to read, does but Commissioner pairs better with Playpen, so Greek letters fall through to Playpen Sans and Commissioner. */
  --display: "Bagel Fat One", "Playpen Sans", "Trebuchet MS", sans-serif;
  --body: "Andika", "Commissioner", system-ui, sans-serif;
}

:lang(el) {
  --display: "Playpen Sans", "Trebuchet MS", sans-serif;
  --body: "Commissioner", system-ui, sans-serif;
}
:lang(ru) { --display: "Comfortaa", sans-serif; --body: "Nunito", system-ui, sans-serif; }
:lang(zh) { --display: "ZCOOL KuaiLe", "PingFang SC", "Microsoft YaHei", sans-serif; --body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:lang(ja) { --display: "M PLUS Rounded 1c", sans-serif; --body: "M PLUS Rounded 1c", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; }
:lang(hi) { --display: "Baloo 2", sans-serif; --body: "Baloo 2", system-ui, sans-serif; }
:lang(ar) { --display: "Baloo Bhaijaan 2", sans-serif; --body: "Baloo Bhaijaan 2", system-ui, sans-serif; }
:lang(ja), :lang(zh) { word-break: auto-phrase; }
/* Scripts without capitals or with tall marks need more line height in headings. */
:lang(zh) h1, :lang(ja) h1, :lang(hi) h1, :lang(ar) h1, :lang(zh) h2, :lang(ja) h2, :lang(hi) h2, :lang(ar) h2 { line-height: 1.3; }
/* Bagel Fat One is already as heavy as type gets; the fallbacks need their boldest weight. */
:lang(el) :is(h1, h2, h3), :lang(ru) :is(h1, h2, h3), :lang(ja) :is(h1, h2, h3), :lang(hi) :is(h1, h2, h3), :lang(ar) :is(h1, h2, h3) { font-weight: 800; }

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--grain) var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; color: var(--blue); }
/* The pink plate printed slightly off from the blue one. */
h1 { text-shadow: 0.05em 0.04em 0 rgb(255 72 176 / 0.55); }
p { margin: 0; }

.topbar, main { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; inset-inline-start: -999px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 2; background: #fff; padding: 8px 16px; border-radius: 8px; }

a:focus-visible, button:focus-visible, .check input:focus-visible, .lang summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Header */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 22px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font: 400 1.9rem/1 "Bagel Fat One", var(--display);
  text-decoration: none;
  text-shadow: 0.05em 0.04em 0 rgb(255 72 176 / 0.55);
  border-radius: 12px;
}
.logo img { width: 46px; height: 46px; transform: rotate(-6deg); transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
.logo:hover img { transform: rotate(4deg) scale(1.06); }

.topbar nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-inline-start: auto; }
.topbar nav a {
  margin: 0 6px;
  padding: 0 3px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  /* A highlighter stroke that sits under the lower half of the word. */
  background: linear-gradient(var(--sun), var(--sun)) no-repeat 0 92% / 0 42%;
  transition: background-size 0.2s ease-out;
}
.topbar nav a:hover { background-size: 100% 42%; }
.topbar nav a[aria-current="page"] { background-size: 100% 42%; }

.lang { position: relative; }
.lang summary {
  list-style: none;
  padding: 6px 12px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px var(--line);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--wash); }
.lang ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 3;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(31 58 122 / 0.15), 0 18px 36px -18px rgb(31 58 122 / 0.5);
  animation: pop 0.15s ease-out;
}
.lang ul a { display: block; padding: 7px 12px; border-radius: 4px; color: var(--ink); text-decoration: none; }
.lang ul a:hover { background: var(--wash); }
.lang ul a[aria-current="true"] { background: var(--sun); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font: 700 1.05rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.12s;
}
.button:hover, .choice:hover .button { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--pink); }
.button:active { transform: none; box-shadow: none; }
.button-light { background: var(--sun); color: var(--ink); }
.button-quiet { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.button-quiet:hover { box-shadow: inset 0 0 0 2px var(--blue), 4px 4px 0 var(--pink); }

/* Paper sheets with a halftone plate printed out of register behind them. */

.hero-board, .choice-paper, .article-art { position: relative; isolation: isolate; }
.hero-board::before, .choice-paper::before, .article-art::before,
.hero-board::after, .choice-paper::after, .article-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
}
.hero-board::before, .choice-paper::before, .article-art::before {
  translate: 14px 14px;
  background: radial-gradient(circle, var(--dot, var(--pink)) 38%, transparent 41%) 0 0 / 9px 9px;
}
.hero-board::after, .choice-paper::after, .article-art::after {
  background: #fff;
  box-shadow: 0 1px 2px rgb(31 58 122 / 0.12);
}

/* Home */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 32px 0 24px;
}

.hero h1 { font-size: clamp(3rem, 1.5rem + 5vw, 5.75rem); line-height: 0.98; }
.hero p { margin-top: 28px; max-width: 34ch; font-size: 1.25rem; color: var(--ink-soft); }

.hero-board {
  /* Room above the sheet for the kid peeking over it. */
  margin-top: 34%;
  padding: 20px;
  border-radius: 4px;
  rotate: -1.5deg;
}
.hero-maze { display: block; width: 100%; height: auto; }
.hero-path {
  stroke: var(--pink);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: solve 4.5s 1.4s cubic-bezier(0.45, 0.05, 0.35, 1) forwards;
}
@keyframes solve { to { stroke-dashoffset: 0; } }

.peeker {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 34%;
  height: auto;
  translate: -50% 8.8%;
  overflow: visible;
}
.peeker .kid { animation: peek 0.7s 0.55s cubic-bezier(0.3, 1.45, 0.5, 1) both; }
.peeker .hands { animation: grab 0.35s 0.2s ease-out both; }
@keyframes peek { from { transform: translateY(330px); } }
@keyframes grab { from { transform: translateY(-40px); opacity: 0; } }

.choices {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px 36px;
  margin-top: 96px;
}

.choice { display: block; color: inherit; text-decoration: none; }
.choice h2 { font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.2rem); }
.choice p { margin: 10px 0 22px; max-width: 40ch; }

.choice-app {
  grid-row: span 3;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 44px 40px 40px;
  border-radius: 6px;
  background: var(--grain) var(--blue);
  color: #fff;
}
/* A pink halftone printed over the blue, fading out from the corner. */
.choice-app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, var(--pink) 40%, transparent 43%) 0 0 / 10px 10px;
  mix-blend-mode: multiply;
  mask-image: radial-gradient(circle at 100% 100%, #000 0, transparent 55%);
}
.choice-app h2 { color: var(--sun); font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.5rem); text-shadow: 0.05em 0.04em 0 rgb(255 72 176 / 0.7); }
.choice-app p { font-size: 1.2rem; }
.choice-app .button { margin-top: auto; }

.games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 10px;
  width: 100%;
  margin: 12px 0 44px;
  padding: 0;
  list-style: none;
}
.games li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; line-height: 1.2; }
.games span {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  font-size: 1.5rem;
  line-height: 1;
}

.choice-paper {
  display: grid;
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 20px;
  padding: 30px 28px;
  border-radius: 4px;
  rotate: 0.8deg;
  transition: rotate 0.2s ease-out, translate 0.2s ease-out;
}
.choice-paper.tilt { rotate: -1deg; --dot: var(--sun); }
.choice-paper:last-child { --dot: var(--orange); }
.choice-paper:hover { rotate: 0deg; translate: 0 -4px; }
.choice-paper .button { padding: 12px 20px; }
.thumb svg { display: block; width: 100%; height: auto; }

/* Makers */

.maker {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  align-items: start;
  gap: 56px;
  padding-top: 24px;
}

.controls { position: sticky; top: 24px; }
.controls-tall { position: static; }
.controls h1 { font-size: clamp(2.3rem, 1.7rem + 2vw, 3.1rem); }
.lede { margin: 14px 0 32px; color: var(--ink-soft); }

fieldset { margin: 0 0 26px; padding: 0; border: 0; }
legend { margin-bottom: 10px; padding: 0; font-weight: 700; }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.options-emoji { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.options-three { grid-template-columns: repeat(3, 1fr); }
.options-four { grid-template-columns: repeat(4, 1fr); }
.options-five { grid-template-columns: repeat(5, 1fr); }
.options-wide { grid-template-columns: 1fr; }
.options.options-subjects { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.option { position: relative; }
.option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.option > span {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line);
  line-height: 1.3;
  transition: background-color 0.12s, box-shadow 0.12s;
}
.option small { color: var(--ink-soft); font-size: 0.85rem; }
.options-emoji .option > span, .options-three .option > span, .options-four .option > span, .options-five .option > span { align-items: center; text-align: center; padding: 10px 4px; }
.emoji { font-size: 1.9rem; line-height: 1.2; }
.options-emoji small { max-width: 100%; overflow-wrap: anywhere; line-height: 1.2; }
.sign { font: 400 1.9rem/1.2 var(--display); color: var(--blue); }
.hint { margin-top: 8px; color: var(--ink-soft); font-size: 0.9rem; }
.option:hover > span { background: var(--wash); }
.option input:checked + span { background: var(--sun); box-shadow: inset 0 0 0 2px var(--ink); }
.option input:checked + span small { color: var(--ink); }
.option input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

.check { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 500; cursor: pointer; }
.check small { display: block; color: var(--ink-soft); font-size: 0.85rem; font-weight: 400; }
.check + .actions { margin-top: 30px; }

/* Options that only matter for one kind of drawing sheet. */
.for-howto, .for-answers { display: none; }
.controls:has([name=kind][value=howto]:checked) .for-howto { display: block; }
.controls:has([name=kind][value=differences]:checked, [name=kind][value=dots]:checked) .for-answers { display: flex; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.preview { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.sheet {
  width: 100%;
  max-width: 640px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(31 58 122 / 0.12), 0 28px 48px -28px rgb(31 58 122 / 0.5);
}
.sheet svg { display: block; width: 100%; height: auto; }
.sheet-title { font-family: var(--display); }
:lang(el) .sheet-title, :lang(ru) .sheet-title, :lang(ja) .sheet-title, :lang(hi) .sheet-title, :lang(ar) .sheet-title { font-weight: 800; }
.sheet-sub { font-family: var(--body); }
.sheet-num { font-family: var(--body); font-weight: 500; }
.answer { stroke: #FF8FCB; }

/* Index cards: blog posts and links */

.more { margin-top: 96px; }
.more h2 { font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.2rem); margin-bottom: 24px; }

.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }

.post-card, .link-card {
  position: relative;
  display: flex;
  gap: 0;
  padding: 20px 24px 22px;
  padding-inline-start: 46px;
  border-radius: 3px;
  /* Text sits on the ruled lines: every line box is 28px tall. */
  background: #fff repeating-linear-gradient(transparent 0 27px, var(--wash) 27px 28px) 0 13px;
  line-height: 28px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(31 58 122 / 0.12), 0 10px 20px -14px rgb(31 58 122 / 0.4);
  transition: translate 0.15s ease-out, rotate 0.15s ease-out;
}
/* The red margin line of a school exercise book. */
.post-card::before, .link-card::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 30px;
  width: 2px;
  background: var(--pink);
  opacity: 0.6;
}
.post-card:hover, .link-card:hover { translate: 0 -3px; rotate: -0.6deg; }
.post-card { flex-direction: column; }
.post-card b { font: 400 1.35rem/28px var(--display); color: var(--blue); }
:lang(el) .post-card b, :lang(ru) .post-card b, :lang(ja) .post-card b, :lang(hi) .post-card b, :lang(ar) .post-card b, :lang(el) .link-body b, :lang(ru) .link-body b, :lang(ja) .link-body b, :lang(hi) .link-body b, :lang(ar) .link-body b { font-weight: 800; }
.post-card small { color: var(--ink-soft); }

.link-card { gap: 16px; }
.link-emoji { font-size: 2.2rem; line-height: 1; }
.link-body { display: flex; flex-direction: column; }
.link-body b { font: 400 1.3rem/28px var(--display); color: var(--blue); }
.link-body small { color: var(--ink-soft); font-weight: 700; }

.links-page { max-width: 880px; padding-top: 24px; }
.links-page h1 { font-size: clamp(2.3rem, 1.7rem + 2vw, 3.1rem); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; font-size: 0.95rem; color: var(--ink-soft); }
.share a, .about a, .prose a { color: var(--blue); font-weight: 700; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.share a:hover, .about a:hover, .prose a:hover { background: rgb(255 181 17 / 0.35); }

.about::after { content: ""; display: table; clear: both; }
.about-pin { float: inline-end; width: 180px; height: auto; margin: 0 0 16px 24px; border-radius: 4px; rotate: 2deg; box-shadow: 0 1px 2px rgb(31 58 122 / 0.15), 0 16px 28px -14px rgb(31 58 122 / 0.5); }
@media (max-width: 480px) { .about-pin { width: 120px; margin-inline-start: 16px; } }
.related-title { margin-top: 32px; font: 400 1.2rem/1.3 var(--display); color: var(--blue); }
.related { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.related a { display: block; padding: 7px 14px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.related a:hover { background: var(--wash); }
.related a[aria-current="page"] { background: var(--sun); box-shadow: inset 0 0 0 2px var(--ink); }

/* Sheets are laid out left to right in every language. */
.sheet svg, .thumb svg, .hero-board svg, .article-art svg { direction: ltr; }

.about { max-width: 760px; margin-top: 96px; }
.about h2 { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2rem); margin-bottom: 16px; }
.about p + p { margin-top: 16px; }

.blog { max-width: 880px; padding-top: 24px; }
.blog h1, .article h1 { font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.1rem); }
.blog .post-list { margin-top: 8px; }

.article { max-width: 720px; padding-top: 16px; }
.crumbs { margin-bottom: 20px; font-size: 0.95rem; color: var(--ink-soft); }
.crumbs a { color: inherit; }
.byline { margin-top: -16px; color: var(--ink-soft); font-size: 0.95rem; }
.article-art { --dot: var(--sun); width: min(260px, 60%); margin: 32px 0 40px; padding: 18px; border-radius: 4px; rotate: -1.5deg; }
.article-art svg { display: block; width: 100%; height: auto; }
.prose { font-size: 1.125rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2rem); }
.prose h3 { margin: 1.6em 0 0; font: 700 1.25rem/1.3 var(--body); }
.prose h3 + p { margin-top: 0.5em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--pink); font-weight: 700; }

/* Footer: one full sheet of blue ink. */

.footer {
  margin-top: 112px;
  padding: 56px max(16px, (100% - 1160px) / 2) 40px;
  background: var(--grain) var(--blue);
  color: rgb(255 255 255 / 0.8);
  font-size: 0.95rem;
}
.footer-nav { display: grid; grid-template-columns: 1fr 1fr 1fr 1.6fr; gap: 28px 32px; margin-bottom: 40px; }
.footer-nav div { display: flex; flex-direction: column; gap: 6px; }
.footer-nav b { margin-bottom: 4px; color: var(--sun); font: 400 1.15rem/1.2 var(--display); }
:lang(el) .footer-nav b, :lang(ru) .footer-nav b, :lang(ja) .footer-nav b, :lang(hi) .footer-nav b, :lang(ar) .footer-nav b { font-weight: 800; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.footer-langs p { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer a:focus-visible { outline-color: var(--sun); }
.footer-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.youtube { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; text-decoration: none; }
.youtube:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }

@media (max-width: 860px) {
  .hero, .choices, .maker { grid-template-columns: 1fr; }
  .hero { gap: 16px; padding-top: 12px; }
  .hero-board { width: min(100%, 520px); margin-inline: auto; }
  .choices { margin-top: 64px; }
  .choice-app { grid-row: auto; padding: 34px 26px 30px; }
  .controls { position: static; }
  .maker { gap: 40px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-langs { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .logo { font-size: 1.6rem; }
  .logo img { width: 40px; height: 40px; }
  .topbar { gap: 10px; }
  .topbar nav { order: 3; width: 100%; margin-inline-start: -4px; }
  .topbar nav a { margin: 0 4px; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .choice-paper { grid-template-columns: 1fr 84px; padding: 26px 20px; }
  .choice-paper, .choice-paper.tilt { rotate: none; }
  .hero-board::before, .choice-paper::before, .article-art::before { translate: 8px 8px; }
  .options-emoji { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-path { animation: none; stroke-dashoffset: 0; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  @page { margin: 8mm; }
  body { background: #fff; }
  .topbar, .footer, .controls, .skip, .more, .about { display: none; }
  .topbar, main { width: auto; }
  .maker, .preview { display: block; padding: 0; }
  .sheet {
    display: flex;
    justify-content: center;
    max-width: none;
    height: 100vh;
    box-shadow: none;
    break-after: page;
  }
  .sheet:last-child { break-after: auto; }
  .sheet svg { width: auto; height: 100%; max-width: 100%; }
}
