/* ABOUTME: Deck-local components for the 100226 deck, layered over the shared bridge and the teaching layer. */
/* ABOUTME: Every class carries the rt- prefix; the backbone diagram's own styles live in assets/loop.css. */

/* --- shared small parts ------------------------------------------------- */
.reveal .rt-meta { font: 500 20px/1.3 var(--mono); letter-spacing: .04em; color: var(--text-dim); }
.reveal .rt-illus {
  display: inline-block; padding: 2px 10px; border: 1px dashed var(--rule-strong); border-radius: 3px;
  font: 500 20px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint);
}
.reveal .rt-todo {
  display: flex; align-items: center; justify-content: center; height: 100%; min-height: 400px;
  border: 2px dashed var(--rule-strong); color: var(--text-faint);
  font: 500 26px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; text-align: center;
}
.reveal .ce-def .rt-def-p { margin: 0; max-width: none; font-size: 26px; line-height: 1.3; color: var(--text); }
.reveal .ce-box .rt-box-d { font-size: 28px; line-height: 1.3; }

/* A row of one-line definitions in a stacked foot. */
.reveal .rt-defrow { display: flex; gap: 40px; }
.reveal .rt-defrow > .ce-def { flex: 1 1 0; display: flex; align-items: baseline; gap: 16px; padding: 0; background: none; border-top: 0; }
.reveal .rt-defrow h3 { flex: 0 0 auto; margin: 0; font-size: 30px; color: var(--gold); }
.reveal .rt-dfn { font-style: normal; }

/* The legend: the shared .ce-legend, plus one entry for "dashed = target". */
.reveal .rt-legend .ce-legend { margin: 0; padding-top: 14px; gap: 10px 34px; }
.reveal .rt-dashed { color: var(--text-dim); }
.reveal .rt-dashed::before { background: none !important; border-top: 4px dashed var(--text-dim); height: 0 !important; }

/* --- title ----------------------------------------------------------------- */
.reveal .rt-title-fig { display: flex; flex-direction: column; gap: 28px; }
.reveal .rt-quiet { flex: 1 1 auto; min-height: 0; opacity: .38; }
.reveal .rt-title-qs { flex: 0 0 auto; margin: 0; }
.reveal .rt-title-qs .ce-box-t { font-size: 30px; }

/* --- act dividers ------------------------------------------------------------ */
.reveal .rt-divider { display: flex; align-items: center; }
.reveal .rt-acts { width: 100%; }
.reveal .rt-acts .ce-box-t { font-size: 44px; }

/* --- the worked example: a Buzz thread mock --------------------------------- */
.reveal .rt-mention { display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; align-items: stretch; }
.reveal .rt-thread {
  display: flex; flex-direction: column; gap: 16px; padding: 26px 30px;
  background: var(--bg-2); border: 2px solid var(--rule-strong); border-radius: 10px;
}
.reveal .rt-thread-head { display: flex; align-items: baseline; gap: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.reveal .rt-thread-head .rt-meta:first-child { color: var(--text-bright); font-size: 26px; }
.reveal .rt-tpost { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: baseline; padding: 12px 16px; border-radius: 6px; }
.reveal .rt-tpost > b { font: 600 28px/1.2 var(--sans); color: var(--text-bright); }
.reveal .rt-tpost-text { margin: 0; max-width: none; font-size: 30px; line-height: 1.3; color: var(--text); }
.reveal .rt-tpost.is-ask { background: color-mix(in oklab, var(--gold) 10%, var(--bg-2)); border-left: 4px solid var(--gold); }
.reveal .rt-at { background: none; color: var(--gold); font-weight: 700; }
.reveal .rt-tpost.is-ghost { border: 2px dashed var(--rule-strong); }
.reveal .rt-tpost.is-ghost > b, .reveal .rt-tpost.is-ghost .rt-tpost-text { color: var(--text-faint); font-style: italic; }
.reveal .rt-example { margin-top: auto; }
.reveal .rt-example .ce-example { margin-top: 0; }
.reveal .rt-defs-col { display: flex; flex-direction: column; gap: 22px; }
.reveal .rt-defs-col .ce-def { flex: 1 1 0; }
.reveal .rt-defs-col .ce-def h3 { font-size: 40px; }

/* --- call one: the five strips with their wire formats ---------------------- */
.reveal .rt-wire { display: flex; flex-direction: column; gap: 14px; }
.reveal .rt-wire-row {
  flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: 290px 1fr 250px; gap: 24px; align-items: center;
  padding: 10px 20px; background: var(--bg-2); border-left: 4px solid var(--teal); border-radius: 4px;
}
.reveal .rt-wire-row.is-rules { border-left-color: var(--gold); }
.reveal .rt-wire-row.is-ask { border-left-color: var(--gold); background: color-mix(in oklab, var(--gold) 7%, var(--bg-2)); }
.reveal .rt-wire-name { display: flex; flex-direction: column; gap: 4px; }
.reveal .rt-wire-name > b { font: 600 32px/1.1 var(--mono); color: var(--text-bright); }
.reveal .rt-wire-code {
  display: block; font: 400 21px/1.38 var(--mono); color: var(--text); white-space: normal;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.reveal .rt-wire-when { text-align: right; }
.reveal .rt-wire-when .rt-meta { color: var(--teal); }

/* --- the input-growth small multiples (lens-input-grows) -------------------- */
.reveal .rt-chart { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; padding-top: 22px; }
.reveal .rt-panel { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.reveal .rt-panel-title { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.reveal .rt-panel-title > b { font: 600 30px/1.15 var(--sans); color: var(--text-bright); }
.reveal .rt-key { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 22px/1.3 var(--mono); color: var(--text-dim); }
.reveal .rt-key-item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; margin-right: 18px; }
.reveal .rt-sw { display: inline-block; width: 22px; height: 10px; border-radius: 2px; }
.reveal .rt-sw.is-in { background: var(--teal); }
.reveal .rt-sw.is-rules { background: var(--gold); }
.reveal .rt-sw.is-iter2 { height: 4px; background: var(--coral); }
.reveal .rt-sw.is-iter3 { height: 4px; background: var(--teal); }
.reveal .rt-panel-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.reveal .rt-panel-plot { position: relative; flex: 1 1 auto; margin-left: 110px; border-bottom: 1px solid var(--rule-strong); }
.reveal .rt-tick { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--rule); }
.reveal .rt-tick > .rt-meta { position: absolute; right: calc(100% + 14px); transform: translateY(-50%); color: var(--text-faint); }
.reveal .rt-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 6px; }
.reveal .rt-col { position: relative; width: 22px; height: 100%; }
.reveal .rt-col-in { position: absolute; left: 0; right: 0; bottom: 0; background: color-mix(in oklab, var(--teal) 70%, var(--bg)); border-radius: 4px 4px 0 0; }
.reveal .rt-col-rules { position: absolute; left: 0; right: 0; bottom: 0; min-height: 4px; background: var(--gold); box-shadow: 0 2px 0 var(--bg) inset; }
.reveal .rt-col-val { position: absolute; left: 50%; transform: translateX(-50%); font: 600 26px/1 var(--mono); color: var(--text-bright); white-space: nowrap; }
.reveal .rt-col:first-child .rt-col-val { transform: none; left: -4px; }
.reveal .rt-col:last-child .rt-col-val { transform: none; left: auto; right: -4px; }
.reveal .rt-panel-x { display: flex; justify-content: space-between; margin: 10px 0 0 110px; }
.reveal .rt-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.reveal .rt-line-iter2, .reveal .rt-line-iter3 { fill: none; stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.reveal .rt-line-iter2 { stroke: var(--coral); }
.reveal .rt-line-iter3 { stroke: var(--teal); }
.reveal .rt-endlabel { position: absolute; right: 0; font: 600 26px/1 var(--mono); color: var(--text-bright); }

/* --- the close: the fusion and the three asks ------------------------------- */
.reveal .rt-close { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding-top: 24px; }
.reveal .rt-close .ce-fuse { margin-top: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.reveal .rt-close .ce-fuse-tops .ce-box-t { font-size: 46px; }
.reveal .rt-close .ce-fuse-drop { height: 44px; }
.reveal .rt-close .ce-fuse-gates { flex: 1 1 auto; }
.reveal .rt-close .ce-fuse-gates .rt-fuse-g { font-size: 40px; line-height: 1.1; margin: 16px 0 14px; }
.reveal .ce-fuse-gates .rt-fuse-o { font-size: 28px; }
.reveal .rt-ask .ce-prompt-band, .reveal .ce-prompt-band.rt-ask { margin-top: 0; }
.reveal .ce-prompt-band.rt-ask > div { min-height: 0; font-size: 30px; }

/* --- appendix reference tables ---------------------------------------------- */
.reveal .rt-ref { width: 100%; border-collapse: collapse; }
.reveal .rt-ref-th { text-align: left; padding: 8px 16px; font: 500 20px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid var(--rule-strong); }
.reveal .rt-ref-td { padding: 9px 16px; font: 400 22px/1.3 var(--sans); color: var(--text); border-bottom: 1px solid var(--rule); vertical-align: top; }
.reveal .rt-ref-tr .rt-ref-td:first-child { color: var(--text-bright); font-weight: 600; white-space: nowrap; }
.reveal .rt-ref-b { font-weight: 600; color: var(--text-bright); }

/* Target status chips read as the legend's "dashed = target, not built", in neutral ink; coral stays for limits and the future. */
.reveal .ce-status.rt-target { color: var(--text-dim); border: 1px dashed var(--text-dim); }
.reveal .ce-fuse-gates .rt-fuse-n { font: 600 28px/1.1 var(--mono); letter-spacing: .04em; color: var(--text-bright); }
