/* The Steps and stage master template, v1 (Sean, 2026-11-26: "Lock it, build Steps and stage first"; canon canon-ve-guide-templates
 * v10_master_templates; BOSS and bench panel lesaruss-hq docs/vegans-explore/2026-11-26-master-templates-boss.md).
 * THIS FILE OWNS THE LAYOUT of every page in the Steps and stage row: How to (/vouch, /check-in) in watch mode. Tell us your story (record
 * mode) runs on /public/ve-story-intake.css and .js, governed by the same master. The master page is /templates/steps (Green Leaf Kitchen,
 * stamped Sample). A change is made here, shown on the master, approved by Sean, then the row is screenshotted at 1440 and 390 before it
 * ships. A page in the row never restyles these parts (scripts/look-check.js rule 6).
 * v1 is moved verbatim from vouch.html (identical in checkin.html), the look Sean locked as v6_how_to_page and v7_story_intake_v2. */
    html, body { overflow-x: hidden; }
    body { margin: 0; background: #fff; color: var(--k-ink); font-family: 'Montserrat', system-ui, sans-serif; }

    /* The slim Guide bar (copied from /partners/giving): the page's name and who it is for, then every part, visible. */
    .rf-bar { background: var(--k-pink); padding: 8px 40px 0; display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
    .rf-name { display: flex; align-items: baseline; gap: 2px 12px; flex-wrap: wrap; padding-bottom: 8px; }
    .rf-name a { font-size: 16px; font-weight: 900; letter-spacing: -.02em; color: var(--k-ink); text-decoration: none; white-space: nowrap; }
    .rf-name span { font-size: 12px; font-weight: 800; }
    .rf-stripe.k-stripe { margin: 0; border-radius: 0; height: 6px; }
    main { padding: 26px 40px 70px; }

    /* Head: title and one line on the left; Liz on the right (option C). */
    .rf-head { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "t"; gap: 0; align-items: start; }
    .rf-head .rf-t { grid-area: t; } .rf-head .rf-act { grid-area: a; }
    .rf-head .k-h1 { margin-bottom: 8px; }
    .rf-head .k-lede { margin-bottom: 14px; }
    .rf-act { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
    /* Liz's line in a 3-row box that scrolls, as on /partners/giving (Sean, 2026-11-19); the text is her recording word for word. */

    /* The body: a little text on the left, the video on the right (Sean). On phones the video comes first. */
    .vh-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px 40px; align-items: start; margin-top: 26px; }
    .vh-text { grid-column: 1; grid-row: 1; min-width: 0; }
    .vh-vid { grid-column: 2; grid-row: 1; position: sticky; top: 84px; }
    .vh-sec { margin: 0 0 26px; scroll-margin-top: 90px; }
    .vh-sec > .k-label { color: var(--k-pinkd); margin-bottom: 4px; }
    .vh-sec h2 { font-size: 22px; font-weight: 900; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 6px; }
    .vh-sec p { font-size: 15px; font-weight: 600; line-height: 1.55; margin: 0 0 10px; max-width: 760px; }
    .vh-sec p b { font-weight: 900; }
    .vh-short { margin-bottom: 16px; }
    .vh-short p { margin: 0; }
    .vh-short p a { color: var(--k-ink); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
    .vh-end { margin-top: 30px; border-top: 2px solid var(--k-ink); padding-top: 18px; }
    .vh-rows { grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 760px; }
    .vh-rows .k-row { padding: 10px 12px; }
    .vh-rows .k-row-t small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .vh-rows .k-row a.k-btn { text-decoration: none; }
    .vh-step { width: 100%; text-align: left; font: inherit; color: inherit; background: #fff; cursor: pointer; }
    .vh-step:hover { background: var(--k-pinkt); }
    .vh-step.on { background: var(--k-pinkt); box-shadow: 4px 4px 0 var(--k-pink); }
    .vh-step.on.playing .vh-tag { background: var(--k-ink); color: #fff; }

    /* The video: 4:5, our frame. Until Liz's takes are in, the poster and "Video coming". */
    .vh-frame { position: relative; aspect-ratio: 4 / 5; border: 3px solid var(--k-ink); border-radius: var(--k-rc); overflow: hidden; background: var(--k-pinkt); box-shadow: 6px 6px 0 var(--k-pink); }
    .vh-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--k-pinkt); }
    .vh-soon { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--k-ink); border-radius: var(--k-r); padding: 10px 12px; }
    .vh-soon b { font-size: 14px; font-weight: 900; }
    .vh-soon small { display: block; font-size: 12px; font-weight: 700; color: var(--k-mute); }
    .vh-frame.ready .vh-soon { display: none; }
    .vh-cap { font-size: 12.5px; font-weight: 700; color: var(--k-mute); margin: 10px 0 0; }

    .vh-also { margin: 10px 0 0; font-size: 14px; font-weight: 800; }
    .vh-also a { color: var(--k-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
    .vh-save.on { background: var(--k-ink); color: #fff; }
    .vh-note { font-size: 12.5px; font-weight: 700; color: var(--k-mute); margin: 8px 0 0; min-height: 1em; }

    @media (max-width: 900px) {
      .rf-bar { padding: 6px 16px 0; gap: 0; }
      .rf-name { padding-bottom: 6px; }
      .rf-name a { font-size: 15px; }
      .rf-name span { font-size: 11px; }
      main { padding: 16px 16px 60px; }
      .rf-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "g" "a"; gap: 0; }
      .rf-head .k-h1 { font-size: 28px; margin-bottom: 4px; }
      .rf-head .k-lede { font-size: 14px; margin-bottom: 10px; }
      .rf-act .k-btn.k-cta { width: 100%; }
      .vh-split { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
      .vh-vid { grid-column: 1; grid-row: 1; position: static; }
      .vh-text { grid-row: 2; }
      .vh-notes { grid-column: 1; grid-row: 3; }
      .vh-frame { max-width: 420px; margin: 0 auto; }
      .vh-sec h2 { font-size: 19px; }
      .vh-sec p { font-size: 14px; }
      .vh-rows .k-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 9px 10px; }
      .vh-rows .k-row .k-num { width: 30px; height: 30px; font-size: 13px; }
      .vh-rows .k-row .k-btn { font-size: 9.5px; padding: 6px 9px; }
    }

    /* How-to pages on the story intake v2 layout (Sean, 2026-11-26: "yes, move both to the new template"; canon canon-ve-guide-templates
       v7_story_intake_v2, reference /featured/invite, rules copied from /public/ve-story-intake.css, never linked): eyebrow, the title on two
       rows, one line, chips; the steps at 1/4 on the left, the stage at 3/4 in 16:9 with Liz's thumbnail and a big pulsing Play; no Start
       button; phones stack, stage first. The notes stay under the steps and the buttons stay last (Sean, 2026-11-26). */
    .rf-head .k-label { color: var(--k-br, #2D5C27); margin-bottom: 6px; display: block; }
    .si-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
    .vh-text > .k-label, .vh-sec > .k-label { color: var(--k-pinkd); margin-bottom: 6px; display: block; }
    .vh-split { margin-top: 22px; }
    .vh-vid { min-width: 0; }
    .vh-frame.vh-169 { aspect-ratio: 16 / 9; background: var(--k-pinkt) center / cover no-repeat; }
    .vh-frame.vh-169 video { object-fit: contain; background: transparent; }
    .vh-frame.vh-169:not(.started) video { opacity: 0; }
    /* The how-to reel on phones (Sean, 2026-11-26: the locked reel; "I think desktop we're locked"): 9:16 under 769 px, the wide Desk board above. */
    .vh-frame.vh-916 { aspect-ratio: 9 / 16; max-width: 420px; width: min(100%, calc((100svh - 120px) * 9 / 16)); scroll-margin-top: 12px; margin: 0 auto; background: var(--k-pinkt) center / cover no-repeat; }
    .vh-frame.vh-916 video { object-fit: contain; background: transparent; }
    .vh-frame.vh-916:not(.started) video { opacity: 0; }
    .vh-who { position: absolute; right: 12px; bottom: 16px; background: #fff; border: 2px solid var(--k-ink); border-radius: 6px; font-size: 11px; font-weight: 900; padding: 4px 8px; pointer-events: none; }
    .vh-frame.started .vh-who { display: none; }
    .si-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; flex-direction: column; align-items: center; gap: 10px; border: 0; background: none; padding: 0; cursor: pointer; color: #fff; font: 900 14px Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.7); z-index: 2; }
    .si-big .si-tri { position: relative; width: 96px; height: 96px; border-radius: 50%; background: var(--k-or); border: 4px solid #fff; box-shadow: 0 6px 22px rgba(0,0,0,.35); display: block; }
    .si-big .si-tri::after { content: ''; position: absolute; left: 38px; top: 27px; border-left: 30px solid #fff; border-top: 19px solid transparent; border-bottom: 19px solid transparent; }
    .si-big .si-ring { position: absolute; left: 50%; top: 48px; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; border: 4px solid #fff; animation: siPulse 1.6s ease-out infinite; pointer-events: none; }
    @keyframes siPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
    @media (prefers-reduced-motion: reduce) { .si-big .si-ring { animation: none; opacity: .6; } }
    .vh-frame.started .si-big { display: none; }
    .si-big:focus-visible .si-tri { outline: 3px solid var(--k-ink); outline-offset: 3px; }
    /* The notes (Sean, 2026-11-26: "putting the what a vouch is, why it matters, and checking on one row underneath the video... an outline
       similar to the tap of steps... put a line underneath it... just underneath the width of the video, not on the navigation side"):
       on a computer one row of three outlined cards under the video, a rule under the row, the buttons last; on phones stacked under the tiles. */
    .vh-notes { min-width: 0; }
    @media (min-width: 901px) {
      .vh-split { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px 32px; }
      .vh-vid { position: static; }
      .vh-notes { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 20px; border-bottom: 2px solid var(--k-ink); }
      .vh-notes .vh-short { margin: 0; border: 2px solid var(--k-ink); border-radius: 10px; padding: 12px 14px; background: #fff; }
      .vh-end { border-top: 0; margin-top: 22px; padding-top: 0; }
      .vh-text { grid-column: 1; grid-row: 1; }
      .vh-vid { grid-column: 2; grid-row: 1; }
      .vh-rows .k-row { grid-template-columns: 40px minmax(0, 1fr); row-gap: 6px; }
      .vh-rows .vh-tag { grid-column: 2; justify-self: start; }
    }
    @media (max-width: 900px) {
      .vh-frame.vh-169 { max-width: none; }
      .si-big .si-tri { width: 72px; height: 72px; } .si-big .si-tri::after { left: 28px; top: 20px; border-left-width: 23px; border-top-width: 14px; border-bottom-width: 14px; }
      .si-big .si-ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; top: 36px; }
    }

    /* v2 (Sean, 2026-11-26, on the mock-up: "build it"; he had said "I kind of want to put them back in the top right hand corner on
       desktop"): on a computer the buttons sit top right in the head, level with the line and chips, the orange action on top and the
       others side by side under it; the rule under the notes comes off. On phones they stay last. steps.js moves the one set of buttons. */
    @media (min-width: 901px) {
      .rf-head.vh-has-act { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t a"; align-items: end; column-gap: 40px; }
      .rf-head .rf-act.vh-top { grid-area: a; display: grid; grid-template-columns: auto auto; gap: 10px; padding-bottom: 4px; }
      .rf-head .rf-act.vh-top > * { justify-content: center; text-align: center; white-space: nowrap; }
      .rf-head .rf-act.vh-top > .k-cta { grid-column: 1 / -1; }
      .rf-head .rf-act.vh-top > .vh-note { grid-column: 1 / -1; }
      .vh-btn-top .vh-notes { border-bottom: 0; padding-bottom: 0; }
      .vh-btn-top .vh-end { margin-top: 0; }
    }

    /* v3 setting, compact steps (Sean, 2026-11-27, on the Community Manager Guide: "Make the icon a little bit bigger so it's the same height
       as the text... keep the text... to no more than 2 rows... let it be a scroll. I want it to be the same height as the video... it could
       be a scroll past 4... We don't need the 3 at the bottom"). Opt in with data-steps="compact" on main; the row keeps v2 until Sean
       approves it for every page. The icon fills the tile's height, no Watch tag, the line clamps at 2 rows, and on a computer the list
       scrolls inside the video's height (about four tiles show). */
    main[data-steps="compact"] .vh-rows { gap: 8px; }
    main[data-steps="compact"] .vh-rows .k-row { grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 0 12px; padding: 8px 12px 8px 8px; }
    main[data-steps="compact"] .vh-rows .k-row .k-num { width: 54px; height: 54px; font-size: 20px; border-radius: 8px; }
    main[data-steps="compact"] .vh-rows .k-row-t b { display: block; font-size: 14.5px; line-height: 1.2; margin-bottom: 2px; }
    main[data-steps="compact"] .vh-rows .k-row-t small { font-size: 12px; line-height: 1.35; }
    main[data-steps="compact"] .vh-rows .vh-tag { display: none; }
    main[data-steps="compact"] .vh-notes { display: none; }
    @media (min-width: 901px) {
      main[data-steps="compact"] .vh-text { align-self: stretch; position: relative; }
      main[data-steps="compact"] .vh-text > #steps { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; }
      main[data-steps="compact"] .vh-text > #steps .vh-rows { flex: 1; min-height: 0; overflow-y: auto; align-content: start; padding: 2px 8px 6px 2px; }
    }
    @media (max-width: 900px) {
      main[data-steps="compact"] .vh-rows .k-row { grid-template-columns: 46px minmax(0, 1fr); padding: 7px 10px 7px 7px; }
      main[data-steps="compact"] .vh-rows .k-row .k-num { width: 46px; height: 46px; font-size: 17px; }
    }
