/* Format pages: pull the story arc up against the hero (the shared
   template leaves a 56px gap under the buy box). */
.prod-grid{margin-bottom:20px}
/* Listing format sections (story arc, contents map, teach cards, versions)
   for upgraded pack pages. Loaded only by pages that use the new format. */
.fmt-block{margin:0 0 16px;padding:0}
.fmt-block h2{font-family:Fredoka,sans-serif;color:#21406B;font-size:28px;margin:0 0 10px}
.fmt-lede{font-size:17px;color:#4A4239;margin:2px 0 14px}
.fmt-lede2{font-size:17px;margin:0 0 10px;max-width:70ch}
.fmt-arc{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media(max-width:900px){.fmt-arc{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.fmt-arc{grid-template-columns:1fr}}
.fmt-step{background:#fff;border:2px solid #EAD9C2;border-radius:14px;overflow:hidden}
.fmt-step img{width:100%;height:auto;display:block;border-bottom:2px solid #EAD9C2}
.fmt-step>div{padding:10px 12px 13px}
.fmt-step b{color:#21406B;font-family:Fredoka,sans-serif;font-size:16.5px;display:block;margin-bottom:2px}
.fmt-step p{margin:0;font-size:14px}
.fmt-stepno{display:inline-block;background:#2E7D6B;color:#fff;border-radius:999px;font-size:12px;font-weight:800;padding:2px 9px;margin-bottom:6px}
.fmt-map{width:100%;border-collapse:collapse;background:#fff;border:2px solid #EAD9C2;border-radius:14px;overflow:hidden}
.fmt-map th{font-family:Fredoka,sans-serif;color:#21406B;font-size:16.5px;background:#FDF3E3;padding:12px 14px;text-align:left}
.fmt-map td{padding:12px 14px;border-top:1px solid #EAD9C2;font-size:15.5px;text-align:left;vertical-align:top}
.fmt-map .pgs{white-space:nowrap;font-weight:700;color:#21406B}
.fmt-peek{display:flex;gap:16px;margin-top:16px;align-items:center;background:#fff;border:2px solid #EAD9C2;border-radius:14px;padding:12px 16px}
.fmt-peek img{width:130px;height:auto;border-radius:8px;display:block}
.fmt-peek p{margin:0;font-size:15.5px}
@media(max-width:560px){.fmt-peek{flex-direction:column;align-items:flex-start}}
.fmt-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:900px){.fmt-cards{grid-template-columns:1fr}}
.fmt-card{background:#fff;border:2px solid #EAD9C2;border-radius:14px;padding:16px}
.fmt-card b{font-family:Fredoka,sans-serif;color:#21406B;font-size:17.5px;display:block;margin-bottom:5px}
.fmt-card p{margin:0;font-size:15px}
.fmt-versions{display:flex;gap:12px;flex-wrap:wrap}
.fmt-versions>div{flex:1;min-width:200px;background:#21406B;color:#fff;border-radius:14px;padding:15px}
.fmt-versions b{font-family:Fredoka,sans-serif;display:block;font-size:17px;margin-bottom:3px}
.fmt-versions p{margin:0;font-size:14px;opacity:.92}
.fmt-sidepeek{background:#fff;border:2px solid #EAD9C2;border-radius:14px;padding:14px 16px;margin-top:8px}
.fmt-sidepeek img{width:100%;max-width:300px;height:auto;display:block;margin:0 auto 10px;border-radius:8px;border:1px solid #EAD9C2}
.fmt-sidepeek p{margin:0;font-size:14.5px}
/* Mobile: hero stacks — art first, then the description/buy column, then the
   sneak peek (desktop keeps the peek under the art in the left column). */
@media(max-width:860px){
  .prod-art{display:contents}
  .prod-art img{order:1}
  .prod-grid>div:nth-child(2){order:2}
  .fmt-sidepeek{order:3}
}
