/* /inside (design-v2/INSIDE-PLAN.md): loaded after home.css. Built to the canvas board A1b-Stage. */
.inside { --in-gap: clamp(20px, 2.4vw, 28px); }
/* Only this page's own headings: the shared close keeps its own heading styles (home.css). */
.in-hero h1, .in-shelf h2, .in-stage h3, .in-library h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; color: var(--ink); }
.in-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero (Damian 10-29, canvas H2-WideVideo): the resources page's panel; the copy and part links left, the video right. */
.in-hero { padding-top: 0; } /* the header row's own padding leaves the same space under the logo as above it (Damian 10-29) */
.in-hero__panel { position: relative; overflow: hidden; margin: 0 24px; padding: 40px 0 22px; border-radius: 40px; background-color: #F8F5F3;
  background-image: linear-gradient(rgba(54,117,51,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(54,117,51,.08) 1px, transparent 1px); background-size: 48px 48px; }
.in-hero__panel > .wrap { position: relative; z-index: 1; }
.in-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 14px/1.3 var(--ui); color: var(--green-800); text-decoration: none; }
.in-back:hover { text-decoration: underline; color: var(--green-800); }
.in-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; margin-top: 18px; }
/* The pill sits above the two columns, so the video centres on the heading, text and links beside it (Damian 10-29). */
.in-hero__grid--text { grid-template-columns: minmax(0, 1fr); max-width: 640px; } /* no hero video (inside-clips.mjs hero: null) */
/* The title sits above the two columns (Damian 11-18), so the video centres on the text and the links beside it, not
   on the title. The "Inside a session" tag is gone: the content sits higher and the card keeps its height, so the
   scroll icon has clear space above it. */
.in-hero h1 { margin: 24px 0 0; font-size: clamp(44px, 2rem + 2.6vw, 64px); line-height: 1.02; }
.in-hero h1 em { color: var(--green-700); }
.in-lead { margin: 14px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.5; color: var(--muted); }
.in-hero__copy > .in-lead:first-child { margin-top: 0; }
/* Four links since the session recaps (Damian 11-18): each is a little shorter, and the hero's spacing is tighter, so
   the copy still centres on the video and the hero keeps its height. */
.in-parts { display: grid; gap: 8px; max-width: 420px; margin-top: 20px; }
.in-parts a { display: flex; align-items: center; gap: 14px; min-height: 44px; box-sizing: border-box; padding: 8px 18px; border: 1px solid var(--line); border-radius: 24px; background: #FFFFFF; color: var(--ink); text-decoration: none; font-size: 16px; transition: border-color 160ms var(--ease-ui); }
.in-parts a:hover { border-color: var(--green-400); color: var(--ink); }
.in-parts a:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; }
.in-parts__dot { flex: none; width: 12px; height: 12px; background: var(--green); }
.in-parts__name { flex: 1; }
.in-parts__num { font-size: 13px; color: var(--muted); }
.in-hero__media { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: var(--green-900); box-shadow: 0 24px 60px rgba(27,59,25,.18); }
.in-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Interim YouTube hero: a poster with a play button; the video plays in place over the poster. */
div.in-hero__video { overflow: hidden; } /* keeps the 16:9 box when the poster photo is 3:2 */
div.in-hero__video > img, div.in-hero__video > iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.in-hero__play { position: absolute; z-index: 2; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; background: rgba(253,252,251,.96); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.in-hero__play:hover { background: #FFFFFF; }
.in-hero__play:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.in-hero__play-dot { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--ink); }
.in-hero__play-dot svg { width: 16px; height: 16px; }
.in-hero__play b { display: block; font: 500 15px/1.25 var(--ui); }
.in-hero__play small { display: block; font-size: 13px; color: var(--muted); }
.in-hero__media.is-playing .in-hero__play { display: none; }
.in-hero__media.is-playing .in-hero__video { z-index: 3; }
.in-hero__ctl { position: absolute; z-index: 2; right: 16px; bottom: 16px; } /* a self-hosted hero video's controls */
/* Only the mouse icon, close to the bottom edge of the card (Damian 11-18); the words "Scroll down" are hidden here. */
.in-hero .scroll-cue { margin-top: 100px; }
.in-hero .scroll-cue span { display: none; }
.in-hero .scroll-cue .scroll-cue__wheel { animation: r10-cue-bob 1.6s ease-in-out infinite; }

/* Shared media controls */
.in-media-ctl { display: flex; gap: 8px; }
.in-ctl { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(253,252,251,.94); color: var(--ink); font: 500 15px/1 var(--ui); cursor: pointer; }
.in-ctl:hover { background: #FFFFFF; }
.in-ctl:focus-visible, .in-pick:focus-visible, .in-card:focus-visible, .in-chip:focus-visible, .in-btn:focus-visible, .in-pager__btn:focus-visible, .in-more:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; }
.in-ctl[data-act="sound"][aria-pressed="true"] { background: var(--green); }


/* Shelves */
.in-shelf { padding: 64px 0 24px; scroll-margin-top: 16px; }
.in-shelf__head { display: flex; flex-wrap: wrap; gap: 12px 48px; align-items: flex-end; justify-content: space-between; padding-top: 28px; margin-bottom: 28px; border-top: 1px solid #E4E2E2; }
.in-shelf__num { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.in-shelf h2 { margin: 0; font-size: clamp(32px, 1.6rem + 1.8vw, 48px); line-height: 1.05; }
.in-shelf__line { margin: 0; max-width: 440px; font-size: 17px; line-height: 1.45; color: var(--muted); }
.in-shelf__body { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }

/* Stage */
/* White stage (Damian 10-28, canvas board S6-AllWhite): controls sit under the video, never on it. */
.in-stage { flex: 1 1 560px; max-width: 620px; min-width: 0; box-sizing: border-box; position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px; padding: 22px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line-soft); box-shadow: 0 12px 32px rgba(35,31,32,.07); }
.in-stage__player { flex: 0 0 230px; display: flex; flex-direction: column; gap: 10px; }
.in-stage__media { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--ink); }
.in-stage__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.in-stage__controls { display: flex; justify-content: center; gap: 8px; } /* centred under the video (Damian 10-29) */
/* Icon buttons (Damian 10-29): play/pause, sound on/off, next trailer. */
.in-stage__controls .in-ctl { flex: none; justify-content: center; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
.in-stage__controls [data-act="next"] { background: #FFFFFF; border: 1px solid var(--line); }
.in-stage__controls [data-act="next"]:hover { border-color: var(--green-400); }
.in-ctl .in-i-on, .in-ctl[aria-pressed="true"] .in-i-off { display: none; }
.in-ctl[aria-pressed="true"] .in-i-on { display: inline; }
.in-stage__controls [data-act="play"] { background: var(--ink); color: #FFFFFF; }
.in-stage__controls [data-act="play"]:hover { background: var(--green-900); }
.in-stage__controls [data-act="sound"] { background: #FFFFFF; border: 1px solid var(--line); }
.in-stage__controls [data-act="sound"][aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.in-stage__text { flex: 1 1 220px; min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 12px; padding: 6px 2px 0; }
.in-stage__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 10px; border-radius: 999px; background: var(--warm-1, #F4F1ED); font: 500 12px/1.2 var(--ui); }
.in-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.in-stage h3 { margin: 0; font-size: clamp(26px, 1.1rem + 1.3vw, 34px); line-height: 1.08; }
.in-stage__who { margin: 0; display: flex; flex-direction: column; gap: 2px; font: 500 15px/1.35 var(--ui); color: var(--ink); }
.in-stage__session { font-weight: 400; font-size: 14px; color: var(--green-700); }
.in-stage__summary { margin: 0; font-size: 15px; line-height: 1.45; color: var(--body); }
.in-stage__actions { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 2px; }
.in-stage__actions[hidden] { display: none; }
.in-stage__actions a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; color: var(--green-700); font: 500 16px/1.3 var(--ui); text-underline-offset: 4px; }
.in-stage__actions a:hover { color: var(--green-900); }
.in-stage__actions a:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; }
.in-stage__actions span { font: 400 13px/1.4 var(--ui); color: var(--muted); }
.in-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font: 500 14px/1 var(--ui); text-decoration: none; }
.in-btn:hover { background: var(--green-900); color: #FFFFFF; }
.in-btn--quiet { background: transparent; color: var(--ink); border: 1px solid var(--green-400); }
.in-btn--quiet:hover { background: var(--page); color: var(--ink); }
.in-egg { display: inline-flex; flex-wrap: wrap; align-items: flex-start; gap: 2px 10px; align-self: flex-start; margin-top: auto; min-height: 44px; padding: 4px 0; color: var(--ink); font: 500 14px/1.3 var(--ui); text-decoration: none; }
.in-egg:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.in-egg:hover > span:not(.in-egg__mark) { text-decoration: underline; text-underline-offset: 3px; }
.in-egg:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; }
.in-egg[hidden] { display: none; }
.in-egg small { flex: 1 0 100%; padding-left: 36px; font: 400 13px/1.3 var(--ui); color: var(--muted); }
/* the T's top bar sits on the text line, its stem hangs below (Damian 11-26) */
.in-egg__mark { flex: none; margin: 5px 0 -5px; display: grid; grid-template-columns: repeat(3, 8px); grid-template-rows: repeat(3, 8px); gap: 1px; }
.in-egg__mark span:nth-child(1) { grid-column: 1; grid-row: 1; background: #C5E5C3; }
.in-egg__mark span:nth-child(2) { grid-column: 2; grid-row: 1; background: #51B04C; }
.in-egg__mark span:nth-child(3) { grid-column: 3; grid-row: 1; background: #A8D8A6; }
.in-egg__mark span:nth-child(4) { grid-column: 2; grid-row: 2; background: #A8D8A6; }
.in-egg__mark span:nth-child(5) { grid-column: 2; grid-row: 3; background: #C5E5C3; }
/* Stage intro (Damian 10-29, canvas P3-Weeks): the shelf explained, with its real sessions, before any trailer plays.
   "Watch the first one" or a row pick swaps in the player (.in-stage__show); "About …" swaps the intro back. */
.in-stage__intro, .in-stage__show { flex: 1 1 100%; min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px; }
.in-stage__intro[hidden], .in-stage__show[hidden] { display: none; }
.in-stage__intro { min-height: 459px; } /* the player's height (a 230 px 9:16 video and its controls), so nothing jumps */
/* Desktop: the week list on the left with "Watch the first one" in its bottom corner, the explainer on the right (Damian 10-29).
   Phones stack them in source order: weeks, explainer, then the button. */
.in-stage__intro { display: grid; grid-template-columns: 230px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 24px 22px; align-items: start; }
.in-steps { grid-column: 1; grid-row: 1; }
.in-stage__about { grid-column: 2; grid-row: 1 / span 2; }
.in-stage__intro .in-watch { grid-column: 1; grid-row: 2; justify-self: center; margin-top: 0; } /* centred in the left column */
/* the lessons button sits in the about column's last row, level with "Watch the first one" (canvas 5a, Damian 11-26) */
.in-stage__about:has(~ .in-lessons) { padding-bottom: 72px; }
.in-lessons { grid-column: 2; grid-row: 2; justify-self: start; position: relative; margin-left: 19px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; box-sizing: border-box; padding: 0 20px 0 7px; border: 1.5px solid var(--ink); border-radius: 999px; background: #FFFFFF; color: var(--ink); font: 500 15px/1 var(--ui); text-decoration: none; }
.in-lessons:hover { background: var(--page); color: var(--ink); }
.in-lessons:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; }
.in-lessons__dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #E8F5E7; color: #1B3B19; }
.in-steps { flex: 0 0 230px; padding-top: 6px; }
.in-steps__label { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.in-steps ol { list-style: none; margin: 0; padding: 0; }
.in-steps li { position: relative; margin-left: 6px; padding: 0 0 18px 26px; border-left: 1px solid var(--green-200); font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.in-steps li span { display: block; font: 400 12px/1.4 var(--ui); color: var(--muted); }
.in-steps li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 13px; height: 13px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--green); background: var(--page); }
.in-steps li.is-first::before { background: var(--green); }
.in-steps__more { margin: 0 0 0 32px; font-size: 13px; color: var(--muted); }
.in-stage__about { flex: 1 1 220px; min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 14px; padding: 6px 0 0 18px; border-left: 1px solid var(--line-soft); }
.in-stage__eyebrow { margin: 0; font: 500 13px/1.3 var(--ui); color: var(--green-700); }
.in-watch { margin-top: 14px; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 7px; border: 0; border-radius: 999px; background: var(--ink); color: #FFFFFF; font: 500 15px/1 var(--ui); cursor: pointer; }
.in-watch:hover { background: var(--green-900); }
.in-watch:focus-visible, .in-stage__back:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; }
.in-watch__dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--ink); }
.in-watch__dot svg { width: 12px; height: 12px; }
.in-stage__back { align-self: flex-start; min-height: 32px; padding: 0; border: 0; background: none; font: 500 13px/1.3 var(--ui); color: var(--green-700); cursor: pointer; }
.in-stage__back:hover { text-decoration: underline; }

/* Scroll stop (inside.js, canvas Pin-Demo): the shelf sticks while the row slides. The empty block after it is the
   scroll it holds for (it has to be content, not padding: a sticky box only travels inside its parent's content box). */
.in-shelf.is-pin::after { content: ""; display: block; height: var(--pin-extra, 0px); }
.in-shelf.is-pin > .wrap { position: sticky; }
.in-shelf.is-pin .in-row__track { scroll-snap-type: none; scroll-behavior: auto; }

/* Row */
.in-row { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.in-row__bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.in-shelf .in-row__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--ink); }
.in-row__sub { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.in-pager { display: flex; align-items: center; gap: 8px; }
.in-pager[hidden] { display: none; }
.in-pager__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--page); color: var(--ink); font-size: 18px; cursor: pointer; }
.in-pager__btn[data-dir="1"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.in-pager__btn:disabled { opacity: .35; cursor: default; }
.in-pager__count { margin: 0; min-width: 64px; text-align: center; font-size: 14px; color: var(--body); }
.in-row__track { list-style: none; margin: 0 -8px; padding: 8px 8px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; overscroll-behavior-x: contain; }
.in-row__track > li { scroll-snap-align: start; }
.in-row__track > li[hidden] { display: none; }
.in-pick { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.in-pick__frame { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: 0 8px 22px rgba(35,31,32,.14); }
.in-pick__play { position: absolute; left: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(253,252,251,.94); color: var(--ink); display: grid; place-items: center; }
.in-pick__play svg { width: 12px; height: 12px; }
.in-pick[aria-pressed="true"] .in-pick__play { display: none; }
.in-pick__frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms var(--ease-out); }
.in-pick:hover .in-pick__frame img { transform: scale(1.03); }
.in-pick[aria-pressed="true"] .in-pick__frame { box-shadow: 0 0 0 3px var(--page), 0 0 0 5px var(--green), 0 8px 22px rgba(35,31,32,.14); }
.in-pick__on { display: none; position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 999px; background: var(--green); color: var(--ink); font: 500 11px/1.2 var(--ui); text-align: center; }
.in-pick[aria-pressed="true"] .in-pick__on { display: block; }
.in-pick__title { font-family: var(--serif); font-size: 18px; line-height: 1.15; }
/* The row ends on "View more clips" (D22): a card-sized tile that jumps to the library with this shelf's filter on. */
.in-more-tile { box-sizing: border-box; aspect-ratio: 9 / 16; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; transition: border-color 160ms var(--ease-ui); }
.in-more-tile:hover { border-color: var(--green-400); color: var(--ink); }
.in-more-tile:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; }
.in-more-tile__dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green-900); color: #FFFFFF; font-size: 20px; }
.in-more-tile__title { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.in-more-tile__sub { font-size: 13px; line-height: 1.35; color: var(--body); }
/* How far along the row you are. */
.in-row__progress { position: relative; height: 4px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.in-row__progress span { position: absolute; left: 0; top: 0; bottom: 0; width: var(--in-progress, 30%); border-radius: 4px; background: var(--green); transition: width 200ms var(--ease-ui); }
.in-pick__meta { font-size: 13px; color: var(--muted); }

/* Session recaps (Damian 11-18, canvas "Inside page: session recaps", board B2): one 16:9 player with the list of
   sessions beside it. The list takes the player column's height and scrolls in its box, so 30 sessions add no height. */
.in-recaps { padding: 64px 0 8px; scroll-margin-top: 16px; }
.in-recaps h2, .in-recap h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; color: var(--ink); }
.in-recaps h2 { font-size: clamp(32px, 1.6rem + 1.8vw, 48px); line-height: 1.05; }
.in-recap { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; padding: 22px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line-soft); box-shadow: 0 12px 32px rgba(35,31,32,.07); }
.in-recap__main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.in-recap__media { position: relative; aspect-ratio: 16 / 9; margin-bottom: 6px; border-radius: 14px; overflow: hidden; background: var(--ink); border: 1px solid var(--line-soft); }
.in-recap__media video, .in-recap__media iframe, .in-recap__media .in-recap__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--ink); }
.in-recap__media video, .in-recap__media .in-recap__poster { object-fit: cover; }
.in-recap__media video[hidden], .in-recap__media .in-recap__poster[hidden], .in-recap__media.is-playing .in-recap__poster { display: none; }
/* Bottom right: the recaps' burned-in captions and title cards sit on the left of the frame. */
.in-recap__play { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; background: rgba(253,252,251,.96); color: var(--ink); text-align: left; font: inherit; cursor: pointer; box-shadow: 0 6px 18px rgba(35,31,32,.16); }
.in-recap__play[hidden], .in-recap__fallback[hidden] { display: none; }
.in-recap__play:hover { background: #FFFFFF; }
.in-recap__play:focus-visible, .in-recap-row:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; }
.in-recap__play-dot { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--ink); }
.in-recap__play-dot svg { width: 16px; height: 16px; }
.in-recap__play b { display: block; font: 500 15px/1.25 var(--ui); }
.in-recap__play small { display: block; font-size: 13px; color: var(--muted); }
.in-recap__noscript { position: absolute; z-index: 2; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(253,252,251,.96); color: var(--ink); font: 500 14px/1.2 var(--ui); text-decoration: none; }
.in-recap__fallback { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 16px; margin: 0; padding: 12px 16px; border-radius: 12px; background: rgba(253,252,251,.96); color: var(--ink); font-size: 15px; }
.in-recap__fallback a { color: var(--ink); font-weight: 500; }
.in-recap__title { font-size: clamp(26px, 1.1rem + 1.3vw, 34px); line-height: 1.08; }
.in-recap__line { margin: 0; font-size: 15px; line-height: 1.45; color: var(--body); }
.in-recap__label { margin: 6px 0 0; font: 500 13px/1.3 var(--ui); color: var(--green-700); }
.in-recap__parts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.in-recap__parts li { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 14px; line-height: 1.2; }
.in-recap__parts li span { font-size: 12px; color: var(--muted); }
.in-recap__side { position: relative; min-height: 320px; }
/* The list of sessions: white, inside one thin Soft Black line (canvas "B2b3 white", Damian 11-18). */
.in-recap__panel { position: absolute; inset: 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 14px 8px 8px 10px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--ink); }
.in-recap__panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 8px 0 6px; }
.in-recap__panel-head h3 { font-size: 24px; line-height: 1.1; }
.in-recap__panel-head p { margin: 0; font-size: 13px; color: var(--muted); }
.in-recap__list { list-style: none; margin: 0; padding: 0 6px 0 0; flex: 1 1 0; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
/* One line per session: play button, number, title, length. No thumbnail. */
.in-recap-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px 6px 6px; border: 0; border-radius: 999px; background: #FFFFFF; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.in-recap-row:hover { background: var(--warm, #FAF9F7); }
.in-recap-row:focus-visible { outline-offset: -3px; }
.in-recap-row[aria-pressed="true"] { background: var(--warm-1, #F4F1ED); }
.in-recap-row__play { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #FFFFFF; }
.in-recap-row__play svg { width: 11px; height: 11px; }
.in-recap-row[aria-pressed="true"] .in-recap-row__play { background: var(--green); color: var(--ink); }
.in-recap-row__n { flex: none; width: 18px; font-size: 13px; color: var(--muted); text-align: right; }
.in-recap-row__title { flex: 1; min-width: 0; font: 500 15px/1.3 var(--ui); }
.in-recap-row__len { flex: none; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .in-recap { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .in-recap__side { min-height: 0; }
  .in-recap__panel { position: static; }
  .in-recap__list { flex: none; max-height: 336px; }
}

.in-projects { margin: 48px 0 0; padding: 20px 24px; border-radius: 14px; background: var(--warm, #FAF9F7); border: 1px dashed var(--line); font-size: 16px; color: var(--body); }

/* Library */
.in-library { padding: 96px 0 72px; scroll-margin-top: 16px; }
.in-library .wrap { display: flex; flex-direction: column; gap: 22px; }
.in-library h2 { margin: 0; font-size: clamp(32px, 1.6rem + 1.8vw, 48px); line-height: 1.05; }
.in-library h2:focus { outline: none; }
.in-library__lead { margin: -10px 0 0; font-size: 17px; color: var(--muted); }
/* Filters on one line (Damian 10-28): topic buttons, then the moment select; the row scrolls sideways on small screens. */
.in-filters { display: flex; align-items: center; gap: 12px 20px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; }
.in-filters::-webkit-scrollbar { display: none; }
.in-chips { display: flex; flex-wrap: nowrap; gap: 8px; flex: 0 0 auto; }
.in-kind { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 8px; font: 500 14px/1 var(--ui); color: var(--muted); }
.in-kind select { min-height: 44px; padding: 0 36px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23231F20' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink); font: 500 15px/1 var(--ui); appearance: none; cursor: pointer; }
.in-kind select:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; }
.in-chip { flex: 0 0 auto; white-space: nowrap; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 15px/1 var(--ui); cursor: pointer; }
.in-chip[hidden] { display: none; }
.in-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.in-chip__n { opacity: .7; }
.in-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 20px; }
.in-grid > li[hidden] { display: none; }
.in-card { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.in-card__frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--ink); }
.in-card__frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms var(--ease-out); }
.in-card:hover .in-card__frame img { transform: scale(1.03); }
.in-card__len { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(35,31,32,.86); color: #FFFFFF; font: 500 12px/1.3 var(--ui); }
.in-card__tag { font: 500 12px/1.3 var(--ui); color: var(--green-700); }
.in-card__title { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.in-card__who { font-size: 14px; color: var(--muted); }
.in-empty { margin: 0; color: var(--muted); }
.in-more { align-self: center; min-height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 500 16px/1 var(--ui); cursor: pointer; }
.in-more[hidden] { display: none; }

/* Player (pop-up), plan D9/D10 */
.in-player { width: min(1200px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 0; background: transparent; color: #FFFFFF; overflow: visible; }
.in-player::backdrop { background: rgba(27, 59, 25, .9); }
.in-player__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.in-player__title { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.in-player__meta { margin: 2px 0 0; font-size: 14px; color: rgba(255,255,255,.8); }
.in-player__close { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #FFFFFF; cursor: pointer; } /* grid centres the X (Damian 10-29) */
.in-player__body { display: flex; gap: 20px; align-items: stretch; }
.in-player__frame { position: relative; flex: 1 1 auto; min-width: 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.in-player__frame iframe, .in-player__frame > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
/* Playing: a 16:9 box. Ended: the iframe is gone and the frame sizes to the end screen, at every width (D10). */
.in-player__frame:has(.in-player__end:not([hidden])) { aspect-ratio: auto; min-height: 0; overflow: visible; }
.in-player__end:not([hidden]) { min-height: 100%; border-radius: 16px; }
/* While the player is open the page behind it does not scroll; the dialog scrolls itself if it is taller than the window. */
html:has(#in-player[open]), body:has(#in-player[open]) { overflow: hidden; }
.in-player { overflow-y: auto; overscroll-behavior: contain; }
.in-player__end { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: clamp(20px, 3vw, 40px); background: var(--page); color: var(--ink); } /* canvas R4-A: a light end card reads against the green overlay (Damian, Oct 29) */
.in-player__end[hidden], .in-player__fallback[hidden] { display: none; }
.in-player__kicker { margin: 0; font: 500 14px/1.2 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--green-700); }
.in-player__more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.in-player__more .in-card { color: var(--ink); }
.in-player__more .in-card__title { font-size: 18px; }
.in-player__more .in-card__who { color: var(--muted); }
.in-player__end .in-player__replay { align-self: flex-start; background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.in-player__fallback { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; margin: 0; padding: 12px 16px; border-radius: 12px; background: rgba(253,252,251,.96); color: var(--ink); font-size: 15px; }
.in-player__fallback a { color: var(--ink); font-weight: 500; }
.in-player__aside { flex: 0 0 280px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 16px; background: var(--green-tint); color: var(--green-900); }
.in-player__aside p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--green-800); }
.in-player__aside .in-player__ask { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--green-900); }
.in-player__aside .btn { min-height: 48px; }
.in-player__aside .btn.btn--green, .in-player__aside .btn.btn--green:hover { background: var(--green-900); color: #FFFFFF; }


@media (max-width: 960px) {
  .in-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .in-hero h1 { margin-top: 16px; }
  .in-hero .scroll-cue { margin-top: 40px; }
}
@media (max-width: 860px) {
  .in-player__body { flex-direction: column; }
  .in-player__aside { flex: none; }
  .in-player__more { grid-template-columns: 1fr; }
  .in-player__more .in-card__frame { display: none; }
}
@media (max-width: 760px) {
  .in-hero__panel { margin: 0 8px; padding: 24px 0 16px; border-radius: 28px; }
  .in-hero__play { left: 12px; bottom: 12px; padding: 4px 14px 4px 4px; }
  .in-hero__play-dot { width: 36px; height: 36px; }
  .in-hero__play b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* phones: dot and length only; the button's label still names the video */
  .in-hero__play small { font: 500 14px/1.2 var(--ui); color: var(--ink); }
  .in-hero .scroll-cue { margin-top: 32px; }
  .in-kind { margin-left: 0; }
  .in-stage { flex-basis: 100%; max-width: none; }
  .in-stage__player { flex: 0 0 100%; max-width: 240px; margin-inline: auto; }
  .in-stage__intro { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .in-steps, .in-stage__about, .in-stage__intro .in-watch { grid-column: auto; grid-row: auto; }
  .in-stage__intro .in-watch { justify-self: start; } /* phones: under the text, left-aligned like it */
  .in-lessons { grid-column: auto; grid-row: auto; margin-left: 0; }
  .in-stage__about:has(~ .in-lessons) { padding-bottom: 0; }
  .in-steps { flex: 1 1 100%; }
  .in-stage__about { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .in-row__track { grid-auto-columns: 168px; }
  .in-player { width: 100vw; height: 100dvh; max-height: none; margin: 0; padding: 16px; box-sizing: border-box; background: var(--green-900); overflow-y: auto; }
  /* Mobile UX plan (2026-11-05). 0C: the stage player fits a short phone with its controls above the dock (568px tall:
     about 212px wide, 9:16, plus controls); taller phones keep 240px. */
  .in-stage__player { max-width: min(240px, calc((100svh - 190px) * 9 / 16)); }
  /* 0D: both filters in view without sideways swiping: the topic buttons wrap, the Moment select gets its own row. */
  .in-filters { flex-wrap: wrap; overflow-x: visible; }
  /* min-width: 0 on both rows: a flex item's automatic minimum is its content's min-content width, and the select's
     intrinsic width (its longest option, doubled at 200% text) let .in-kind grow 4px past the row, past its 2px padding. */
  .in-chips { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; }
  /* With enlarged text a long topic name wraps inside its button instead of running off the screen. */
  .in-chip { white-space: normal; max-width: 100%; text-align: left; line-height: 1.2; padding-block: 6px; }
  .in-kind { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; } /* enlarged text: the select moves under its label rather than shrink */
  .in-kind select { flex: 1 1 auto; min-width: 0; max-width: 100%; }
  /* 2A: less space between the hero and the first shelf; the shelf's own introduction stays. */
  .in-hero__panel { padding-bottom: 16px; }
  .in-hero .scroll-cue { margin-top: 20px; }
  .in-shelf { padding-top: 32px; }
  .in-shelf__head { padding-top: 20px; margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .in-row__track { scroll-behavior: auto; }
  .in-pick__frame img, .in-card__frame img { transition: none; }
}

/* Hero cover: in-person photo, with a Zoom session (last names blurred) on the right of a green diagonal (hero.online in inside-clips.mjs) */
.in-hero__split { position: absolute; inset: 0; background: var(--green); clip-path: polygon(57.4% 0, 100% 0, 100% 100%, 41.4% 100%); pointer-events: none; }
div.in-hero__video .in-hero__split img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(57.8% 0, 100% 0, 100% 100%, 41.8% 100%); }
/* With the split, only the photo's left part shows: slide it left (same size) so the students, not the stairs, fill it.
   The strip this opens on the right sits under the Zoom half (Damian 10-29). */
div.in-hero__video:has(.in-hero__split) > img { transform: translateX(-24%); }

