/* Kindergarten deck-local · multi-pair clothesline conveyor (W7/W7p, W8/W8p) */

/* Title-only cards match leading plan title column width (5-col grid, first cell) */
.reveal .slides > section[data-cl-title-only] .fam.fm-days {
  --fm-n: 5;
}
.reveal .slides > section[data-cl-title-only] .fm-days-row {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  justify-items: stretch;
}
.reveal .slides > section[data-cl-title-only] .fm-day {
  grid-column: 1;
  animation: none !important;
  opacity: 1 !important;
}

.reveal .slides > section[data-cl-track] .fm-day {
  animation: none !important;
  opacity: 1 !important;
  translate: 0 calc(var(--fm-sag, 0.25em) * var(--k, 0) * 0.35);
}
.reveal .slides > section[data-cl-track] svg.fm-line {
  height: 0.55em;
  top: 0.85em;
}
.reveal .slides > section[data-cl-track] .fam.fw-line,
.reveal .slides > section[data-cl-track] .fam.fw-line.in {
  opacity: 1 !important;
  animation: none !important;
}
.reveal .slides > section[data-cl-track] .num.plate-num {
  position: absolute; z-index: 1; left: auto; right: 84px; bottom: 96px;
  opacity: 0.85; pointer-events: none; font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1; color: var(--teal-deep, #0A5C55);
}

/* During conveyor: hide live card tracks (chrome/bg stay) */
.reveal .slides > section[data-cl-track].cl-cards-hidden [data-cl-role="cards"] {
  visibility: hidden !important;
}

#cl-track-stage,
#cl-week7-stage /* legacy alias removed at runtime */ {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  overflow: hidden;
  display: none;
}
#cl-track-stage.is-on { display: block; }
#cl-track-stage .cl-viewport {
  position: absolute;
  overflow: hidden;
}
#cl-track-stage .cl-rope {
  position: absolute;
  left: 2%;
  right: 2%;
  top: 0.85em;
  width: 96%;
  height: 0.55em;
  color: rgba(255, 255, 255, 0.92);
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
#cl-track-stage .cl-belt {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  will-change: transform;
  z-index: 1;
}
#cl-track-stage .cl-panel {
  height: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
#cl-track-stage .cl-panel .fam {
  width: 100%;
  height: 100%;
  margin: 0;
}
#cl-track-stage .cl-panel .fm-day {
  animation: none !important;
  opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  #cl-track-stage { display: none !important; }
  .reveal .slides > section[data-cl-track].cl-cards-hidden [data-cl-role="cards"] {
    visibility: visible !important;
  }
}
.static #cl-track-stage { display: none !important; }
.cl-track-ghost, .cl-track-hold { /* legacy killed */ }

/* ---- Typography + spacing pass 2026-11-09 (deck-level only; core CSS untouched) ----
   Ported from the Middle School finish typography block and the PDU polish rhythm (pdu-behavior-101 deck.css). */
.reveal .slides > section h2 { line-height: 1.08; }
.reveal .slides > section:not(.l-fam-card) h3 { line-height: 1.12; }
.reveal .slides > section .kicker { line-height: 1.3; }
.reveal .slides > section:not(.l-title):not(.l-section):not(.l-closing) .lede { font-size: 40px; line-height: 1.42; }
.reveal .slides > section.l-text-sidebar .split p:not(.lede) { line-height: 1.42; }
.reveal .slides > section .tag,
.reveal .slides > section figcaption,
.reveal .slides > section .cap { letter-spacing: 0.1em; }
.reveal .slides > section .fm-day .when { letter-spacing: 0.1em; }
.reveal .slides > section .num-list span { line-height: 1.36; }
.reveal .slides > section .footnote p { line-height: 1.4; }
.reveal .slides > section.l-icon-grid h2,
.reveal .slides > section.l-do-dont h2 { line-height: 1.08; }
.reveal .slides > section.l-process .p .tag { letter-spacing: 0.1em; }

/* ---- Shared polish 2026-11-09 (all syllabus decks; PDU rhythm) ---- */
.reveal .slides section :is(h1, h2) { text-wrap: balance; }
.reveal .slides section :is(p, li, dd, .lede, .stat-label, .fine, figcaption) { text-wrap: pretty; }
/* no mid-word breaks: words wrap whole; long station titles step down a size instead (deck-typo.js marks them) */
.reveal .slides section :is(h1, h2, h3, h4, p, li) { hyphens: manual; -webkit-hyphens: manual; }
section[data-cl-track] .fm-day h3, section[data-cl-track] .fm-day h4,
#cl-track-stage .fm-day h4 { overflow-wrap: normal !important; word-break: normal; hyphens: none !important; -webkit-hyphens: none !important; }
.fm-day-card h4.lw-1 { font-size: 1.12em; }
.fm-day-card h4.lw-2 { font-size: 1.0em; }
/* owner decision 2026-11-09: no source lines on faces; a short pro tip or highlight instead (PDU pattern) */
.reveal .slides section .footnote .tip { font-size: var(--fs-caption); line-height: 1.35; color: var(--fg, var(--navy)); margin: 0; text-wrap: pretty; }
.reveal .slides section .footnote .tip b { display: inline-block; background: var(--yellow); color: var(--navy); font-family: var(--f-mono); font-size: 22px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; margin-right: 12px; vertical-align: .12em; }
.reveal .slides section.t-yellow .footnote .tip b { background: var(--navy); color: var(--yellow); }
/* 2026-11-09 type pass: B7 sketch label "then" sits over a faint index contour after the h2 rhythm change; quiet that contour.
   D13: the USGS 3DEP credit (public-domain elevation data) sat under the cue-card clothesline bar; hidden on this slide only. */
section[data-slide="B7"] .terrain path.tr-index { opacity: .25; }
section[data-slide="D13"] .tr-credit { visibility: hidden; }


/* PD Library overlay (content/kindergarten/deck.patch.css) */

/* ---- layout fixes (QA 2026-11-17) ---- */
/* text-sidebar: the drop cap tile split the first word ("t is not", "S it"); set the opening as a plain paragraph */
.reveal .slides section.l-text-sidebar p.drop::first-letter { float: none; font: inherit; line-height: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; text-shadow: none; }
/* numbered: five steps ran under the ground band; tighter rhythm so step 05 clears the ridge */
.reveal .slides section.l-numbered:has(.num-list li:nth-child(5)) .num-list.tags { gap: 30px; }
.reveal .slides section.l-numbered:has(.num-list li:nth-child(5)) .num-list.tags li b { font-size: 40px; margin-bottom: 10px; }
.reveal .slides section.l-numbered:has(.num-list li:nth-child(5)) .num-list.tags li span { font-size: 30px; line-height: 1.3; }
/* agenda: Partner stood on the last line of the lede; smaller, and below it */
.reveal .slides section[data-slide="A2"] .partner { left: 700px !important; bottom: 52px !important; height: 300px !important; width: 201px !important; }
/* process: the hand note ran into the YOU LEAD tag; set it on the left, under the lede */
.reveal .slides section.l-process .ink-note { align-self: flex-start; margin-left: 0; translate: 0 -14px; }
.reveal .slides section[data-slide="W1"] .footnote p { display: inline-block; color: #fff; background: #022D41; padding: 6px 18px; border-radius: 10px; }
.reveal .slides section[data-slide="W1p"] .footnote p { display: inline-block; color: #fff; background: #022D41; padding: 6px 18px; border-radius: 10px; }
.reveal .slides section[data-slide="W3"] .footnote p { display: inline-block; color: #fff; background: #022D41; padding: 6px 18px; border-radius: 10px; }
.reveal .slides section[data-slide="W3p"] .footnote p { display: inline-block; color: #fff; background: #022D41; padding: 6px 18px; border-radius: 10px; }
.reveal .slides section[data-slide="W4p"] .footnote p { color: #022D41; font-weight: 600; }
.reveal .slides section[data-slide="W5"] .footnote p { display: inline-block; color: #fff; background: #022D41; padding: 6px 18px; border-radius: 10px; }
.reveal .slides section[data-slide="W5p"] .footnote p { display: inline-block; color: #fff; background: #022D41; padding: 6px 18px; border-radius: 10px; }
.reveal .slides section[data-slide="W7"] .footnote p { display: inline-block; color: #fff; background: #022D41; padding: 6px 18px; border-radius: 10px; }
.reveal .slides section[data-slide="W7p"] .footnote p { display: inline-block; color: #fff; background: #022D41; padding: 6px 18px; border-radius: 10px; }
.reveal .slides section[data-slide="W8"] .footnote p { color: #fff; }
.reveal .slides section[data-slide="W8p"] .footnote p { color: #fff; }
.reveal .slides section[data-slide="W9"] .footnote p { display: inline-block; color: #fff; background: #022D41; padding: 6px 18px; border-radius: 10px; }
.reveal .slides section[data-slide="W9p"] .footnote p { display: inline-block; color: #fff; background: #022D41; padding: 6px 18px; border-radius: 10px; }
.reveal .slides section[data-slide="W10p"] .footnote p { color: #022D41; font-weight: 600; }
.reveal .slides section[data-slide="W11"] .footnote p { display: inline-block; color: #fff; background: #022D41; padding: 6px 18px; border-radius: 10px; }
.reveal .slides section[data-slide="W11p"] .footnote p { display: inline-block; color: #fff; background: #022D41; padding: 6px 18px; border-radius: 10px; }
.reveal .slides section[data-slide="W12p"] .footnote p { color: #022D41; font-weight: 600; }
/* week cards hung past the pro tip: pull the line up */
.reveal .slides section[data-slide="W3p"] .fam.fw-line { margin-top: 0px; }
.reveal .slides section[data-slide="W12p"] .fam.fw-line { margin-top: -10px; }

/* PD Library: a note card where Partner's balloon carried content (Partner lives in the side viewer) */
.reveal .pd-note { position: absolute; z-index: 5; max-width: 360px; padding: 18px 22px; background: #fff; color: #022D41;
  border-radius: 16px; box-shadow: 0 14px 30px -12px rgba(2,45,65,.45); font: 600 26px/1.35 'Montserrat', sans-serif;
  border-top: 6px solid #34C6B9; }


/* PD Library house fixes (tools/library-deck.css) */
/* PD Library house fixes appended to every deck by ingest.py (QA 2026-11-17). One fix per block, labelled. */

/* text-sidebar: the drop cap tile split the first word ("S tructure"); set the opening as a plain paragraph */
.reveal .slides section.l-text-sidebar p.drop::first-letter { float: none; font: inherit; line-height: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; text-shadow: none; }

/* pattern 1 · l-flow: the PRO TIP footnote sat at bottom 74px, on the mesa ridge, and the ground edge struck through it.
   Lift it clear of the desert band (200px tall, ridge peak about 115px) and give it a paper wash so a tall mesa never touches it. */
.reveal .slides section.l-flow > .footnote { bottom: 222px; z-index: 4; }
.reveal .slides section.l-flow > .footnote .tip { background: none; }

/* pattern 3 · hand-drawn circle mark in a headline: the loop reaches out into the gap before the mark (the gap is only a
   space wide, so the stroke touched the last letter of the word before it). A wider gap lets the loop stay clear of it. */
.reveal .slides section :is(h1, h2, h3, .big, .ask, .display, .quote) .mk.circle { margin-left: .3em; }
/* the full stop after a circled phrase wrapped onto a line of its own when the mark filled the line; keep the mark and the
   full stop on one unbreakable run by letting the mark sit in the line as inline text (the loop is measured to the letters,
   so the drawing does not move) */
.reveal .slides section :is(h1, h2, h3, .big, .ask, .display, .quote) > .mk.circle { display: inline; }

/* pattern 4 · l-cycle on yellow (and butter): the stage icons were navy on a navy tile. Print the icon in yellow, as t-teal does in teal. */
.t-yellow .orbit .node .icon, .t-butter .orbit .node .icon { background: var(--navy); border-color: var(--navy); color: var(--yellow); box-shadow: 0 0 0 10px var(--bg); }
.t-yellow .orbit .node .icon svg, .t-butter .orbit .node .icon svg { color: var(--yellow); stroke: currentColor; }

/* pattern 5 · l-definition: when the plate carries only the generic paw scene (no photo, no drawing of the thing), a bordered
   "Fig." card reads as a missing picture. Set the paw as a quiet printed mark instead: no card, no figure number, faint ink. */
.l-definition .fig:has(.ht-scene[data-scene="paw"]) { background: none; box-shadow: none; padding: 0; rotate: 0deg; right: 190px; top: 190px; }
.l-definition .fig:has(.ht-scene[data-scene="paw"]) .ht-scene { outline: 0; width: 520px; height: 520px; opacity: .22; }
.l-definition .fig:has(.ht-scene[data-scene="paw"]) figcaption { display: none; }
.reveal .slides > section.l-definition.mirror .fig:has(.ht-scene[data-scene="paw"]) { left: 190px; right: auto; rotate: 0deg; }

/* pattern 6 · title and call-to-action slides with no photo (or QR) for the sun to rise behind: a big whole yellow disc read as an
   empty frame. Make it a smaller sun resting on the horizon instead (kept inside the slide, so no clipping is needed). */
.l-title:not(:has(.plate, .cover-photo, .photo)) .ht-sun, .l-cta:not(:has(.qr-col)) .ht-sun { top: auto; bottom: 96px; right: 330px; width: 300px; height: 300px; }

/* pattern 7 · navy type on teal slides (owner 11-17: "navy font on teal slides" reads low): on the darker teal (t-teal, #20A296)
   navy #022D41 measured 4.59:1, the floor of AA, on every heading, lede, kicker and label. Ink teal slides in navy-deep
   (#011E2C) instead: 5.45:1 on the flat teal and more under the light glows. Navy cards and the ridge on a teal slide go a
   shade deeper with it, which only lifts the white type they carry. The coral "avoid" ink goes deeper too (3.74 to 4.76:1). */
.reveal .t-teal { --navy: #011E2C; --bad: #4E1009; }

/* owner 11-18 (phone screenshot, Behavior Camp S14): in the viewer (html.embed) the field-press masthead and its crop marks are
   pinned to the frame edges at fixed sizes, so in a small frame they cover the slide. The viewer has its own chrome: hide them. */
html.embed .press-frame { display: none !important; }

/* 11-18 timing pass (sync_check motion-late): every entrance lands within 3 s of the slide. Long authored delays on the
   infographic draws and the ink stamp are capped; their order is kept, only the tail is pulled in. */
.reveal .slides section.present .info .ig-draw,
.reveal .slides section.present .info-kpi .ig-draw { animation-delay: calc(min(var(--d, 0s), 1.7s) + var(--tx-hold, 0ms)) !important; }
.reveal .slides section.present .stamp-ink.press { animation-delay: min(var(--st-d, 1.2s), 1.8s) !important; }
