/* Module story pages: plain-language descriptions, the kraft story strip from each sticker film,
   and picto stills on the How-it-works steps. Used by the module pages that have a sticker film. */
/* plain-language descriptions: under the film, and above each screen */
.mintro { max-width: 68ch; margin: 18px 0 4px; font-size: 17px; line-height: 1.65; color: var(--ink); }
.sp-d { max-width: 64ch; margin: 6px 0 6px; line-height: 1.6; color: var(--ink); }
/* the film's story: a kraft strip of five notes, each opening its screen below */
.story { --kraft: #D5B78F; --khead: #2B2118; --kmuted: #5C4733; --kline: rgba(43, 33, 24, .32); --kred: #C93A22;
  background-color: var(--kraft); background-image: radial-gradient(rgba(90, 60, 25, .08) 1px, transparent 1px); background-size: 6px 6px; padding: 56px 0 60px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .story { --kraft: #33281E; --khead: #F3E9DA; --kmuted: #D6C3AA; --kline: rgba(243, 233, 218, .28); --kred: #F08A6C; } }
:root[data-theme="dark"] .story { --kraft: #33281E; --khead: #F3E9DA; --kmuted: #D6C3AA; --kline: rgba(243, 233, 218, .28); --kred: #F08A6C; }
.story-in { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; align-items: center; }
.story-who { margin: 0; text-align: center; }
/* the character is a cut-out sticker with its own white edge: no frame, a shadow that follows the outline */
.story-who img { display: block; width: auto; max-width: 100%; height: auto; max-height: 460px; margin: 0 auto; transform: rotate(-2deg); filter: drop-shadow(0 12px 12px rgba(40, 25, 10, .38)); }
.story-who figcaption { margin-top: 12px; font: 700 26px/1 "Caveat", cursive; color: var(--khead); }
.story-who figcaption span { display: block; font-size: 19px; color: var(--kmuted); margin-top: 2px; }
.story .eyebrow { color: var(--kmuted); }
.story .v3-h { color: var(--khead); margin-bottom: 14px; }
.story-times { display: flex; flex-wrap: wrap; gap: 10px; }
.story-tag { background: #FFFFFF; color: #2B2118; font: 800 15px var(--sans); padding: 6px 12px; border-radius: 3px; box-shadow: 0 6px 14px -10px rgba(40, 25, 10, .7); }
.story-tag.hot { color: #C93A22; }
.story-notes { list-style: none; margin: 26px 0 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(var(--story-cols, 5), minmax(0, 1fr)); gap: 18px; position: relative; }
.story-notes::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 2px dashed var(--kline); }
.story-notes li { display: flex; }
.story-note { position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; background: #FFFBF2; color: #2B2118; padding: 20px 16px 14px; border-radius: 3px; text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 16px 26px -18px rgba(40, 25, 10, .75); transform: rotate(-1.2deg); transition: transform .2s; }
.story-notes li:nth-child(even) .story-note { transform: rotate(1deg); }
.story-note::before { content: ""; position: absolute; top: -10px; left: 50%; width: 72px; height: 18px; margin-left: -36px; background: rgba(255, 255, 255, .7); transform: rotate(-3deg); }
.story-note:hover, .story-note:focus-visible { transform: rotate(0) translateY(-3px); }
.story-note:focus-visible { outline: 3px solid var(--kred); outline-offset: 3px; }
.story-note .n { font: 800 34px/1 var(--sans); color: #C93A22; }
.story-note b { font: 800 17px/1.25 var(--sans); }
.story-note i { font: 700 20px/1.1 "Caveat", cursive; font-style: normal; color: #6E5A45; }
.story-note .ans { flex: 1; margin-top: 4px; font-size: 14.5px; line-height: 1.5; }
.story-note .go { font: 700 13px var(--sans); color: #0B6F68; }
.story-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 0; color: var(--khead); font-size: 16px; }
.story-end .story-hand { font: 700 30px/1 "Caveat", cursive; color: var(--kred); }
@media (max-width: 1180px) { .story-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .story-in { grid-template-columns: minmax(0, 1fr); gap: 24px; } .story-who { display: flex; align-items: center; gap: 14px; text-align: left; } .story-who img { max-width: 150px; max-height: 190px; margin: 0; } .story-who figcaption { margin-top: 0; } .story-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .story-notes { grid-template-columns: minmax(0, 1fr); } .story-notes::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .story-note { transition: none; } }
#screens { scroll-margin-top: 76px; }
/* How it works: a still from the picto film at the top of each step */
.steps3.pictos li { flex-wrap: wrap; overflow: hidden; padding-top: 0; }
.steps3.pictos .st-img { display: block; flex: 0 0 calc(100% + 32px); width: calc(100% + 32px); max-width: none; height: auto; aspect-ratio: 800 / 388; object-fit: cover; margin: 0 -16px 6px; border-bottom: 1px solid var(--line); background: #0B1324; }
/* See it on real screens: the box fits the open example. The others leave the flow while they fade out,
   so a short screen no longer leaves the empty space the tallest one needs. */
.sx-view.tabstack > .sp:not(.on) { position: absolute; top: 24px; left: 24px; right: 24px; }
@media (max-width: 600px) { .sx-view.tabstack > .sp:not(.on) { top: 16px; left: 16px; right: 16px; } }
