/* The SEO pages' own styles, over the site's /assets/css/pages.css (the night, the type, the header, the ground and the
   boiling .sprite all come from there). Only what pages.css doesn't have is here. One file for every page. */

/* the header: the wordmark (the stacked one on a phone, as on the home page), and a way to the app */
.brand .stacked { display: none; }
@media (max-width: 559px) {
  .brand .wide { display: none; }
  .brand .stacked { display: inline-block; }
}
.top .get {
  color: var(--ink); text-decoration: none; font-weight: 700; padding: 6px 18px;
  border-radius: var(--pill-radius); box-shadow: inset 0 0 0 2px var(--ink);
}
.top .get:hover { color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }

/* where the page sits: doodle ideas / frog */
.crumbs { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--muted);
  font-size: 16px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--faint); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.lede { color: var(--ink); font-size: 22px; margin-bottom: 28px; }
:root:is(:lang(ja), :lang(zh)) .lede { font-size: 20px; }

/* a doodle on the app's paper: the still (a strip of three frames, boiling in CSS), and the player's canvas over it while
   it draws itself (player.js) */
.doodle { margin: 0 0 32px; }
.doodle .paper {
  position: relative; width: var(--size, 320px); max-width: 100%; aspect-ratio: 1; background: #fff;
  border-radius: 6px; overflow: hidden;
}
.doodle .paper .sprite { --w: 256; --h: 256; width: 100%; height: 100%; }
.doodle .paper .sprite > img { width: 300%; height: 100%; image-rendering: pixelated;
  animation: doodle-boil 0.3s steps(3) infinite; }
@keyframes doodle-boil { to { transform: translateX(-100%); } }
.doodle canvas.player { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; display: none; }
.doodle.playing canvas.player { display: block; }
.doodle.playing .sprite { visibility: hidden; }
.doodle figcaption { color: var(--muted); margin-top: 10px; font-size: 17px; }
.doodle figcaption strong { color: var(--ink); font-weight: 400; }
.doodle .again {
  margin-top: 12px; font: inherit; font-size: 17px; color: var(--ink); background: none; border: 0; cursor: pointer;
  padding: 4px 14px; border-radius: var(--pill-radius); box-shadow: inset 0 0 0 2px var(--faint);
}
.doodle .again:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.doodle.hero { --size: 420px; }

/* step by step: a small paper for each step; the one being drawn lights up while the doodle above draws itself */
.steps { list-style: none; padding: 0; margin: 0 0 14px; counter-reset: step; display: grid; gap: 20px; }
.steps > li { display: grid; grid-template-columns: 128px 1fr; gap: 18px; align-items: start; margin: 0;
  counter-increment: step; transition: color 0.15s; }
.steps .paper { position: relative; width: 128px; aspect-ratio: 1; background: #fff; border-radius: 4px; overflow: hidden; }
.steps .paper .sprite { --w: 256; --h: 256; width: 100%; height: 100%; }
.steps .paper .sprite > img { width: 300%; height: 100%; image-rendering: pixelated; animation: doodle-boil 0.3s steps(3) infinite; }
.steps p { margin: 0; }
.steps p::before { content: counter(step) ". "; color: var(--orange); }
.steps strong { display: block; }
.doodle.playing[data-step="0"] ~ .steps > li:nth-child(1),
.doodle.playing[data-step="1"] ~ .steps > li:nth-child(2),
.doodle.playing[data-step="2"] ~ .steps > li:nth-child(3),
.doodle.playing[data-step="3"] ~ .steps > li:nth-child(4),
.doodle.playing[data-step="4"] ~ .steps > li:nth-child(5),
.doodle.playing[data-step="5"] ~ .steps > li:nth-child(6),
.doodle.playing[data-step="6"] ~ .steps > li:nth-child(7),
.doodle.playing[data-step="7"] ~ .steps > li:nth-child(8) { color: var(--ink); }
.doodle.playing[data-step="0"] ~ .steps > li:nth-child(1) p,
.doodle.playing[data-step="1"] ~ .steps > li:nth-child(2) p,
.doodle.playing[data-step="2"] ~ .steps > li:nth-child(3) p,
.doodle.playing[data-step="3"] ~ .steps > li:nth-child(4) p,
.doodle.playing[data-step="4"] ~ .steps > li:nth-child(5) p,
.doodle.playing[data-step="5"] ~ .steps > li:nth-child(6) p,
.doodle.playing[data-step="6"] ~ .steps > li:nth-child(7) p,
.doodle.playing[data-step="7"] ~ .steps > li:nth-child(8) p { color: var(--ink); }

/* more doodles, side by side where there's room */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; margin: 0 0 14px; }
.gallery .doodle { --size: 100%; margin: 0; }

/* the app, where it fits: a box drawn like the help pages' */
.app {
  margin: 48px 0 0; padding: 22px 24px;
  border-radius: 20px 15px 21px 14px / 15px 21px 14px 20px; box-shadow: inset 0 0 0 2px var(--faint);
}
.app h2 { margin-top: 0; }
.app .badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.app .badges img { height: 48px; width: auto; }

/* more to read: a wrap of links */
.more { display: flex; flex-wrap: wrap; gap: 10px 14px; list-style: none; padding: 0; margin: 0 0 14px; }
.more li { margin: 0; }
.more a {
  display: inline-block; color: var(--ink); text-decoration: none; padding: 4px 14px;
  border-radius: var(--pill-radius); box-shadow: inset 0 0 0 2px var(--faint);
}
.more a:hover { box-shadow: inset 0 0 0 2px var(--ink); }

@media (max-width: 559px) {
  .doodle.hero { --size: 100%; }
  .steps > li { grid-template-columns: 96px 1fr; gap: 14px; }
  .steps .paper { width: 96px; }
}

/* M2 additions */
/* a slot still waiting for its picture: words only, never a drawn screen */
.note { margin: 0 0 24px; padding: 14px 18px; border: 2px dashed var(--faint); border-radius: 14px 18px 13px 17px / 17px 13px 18px 14px;
  color: var(--muted); max-width: 330px; }
.note p { margin: 0; }
/* a store screenshot, never wider than a phone */
.shot { margin: 0 0 32px; max-width: 330px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; }
.shot figcaption { color: var(--muted); margin-top: 10px; font-size: 17px; }
/* a hub's list: each page with its doodle */
.hub-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 14px; }
.hub-list li { margin: 0; }
.hub-list a { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; color: var(--muted); text-decoration: none; }
.hub-list a:hover strong { text-decoration: underline; }
.hub-list strong { display: block; color: var(--ink); font-weight: 400; }
.hub-list .thumb { width: 72px; aspect-ratio: 1; background: #fff; border-radius: 4px; overflow: hidden; }
.hub-list .thumb img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.gallery:has(> .doodle:only-child) { grid-template-columns: minmax(0, 320px); }
