/* motion.css — how the three worlds with tabs move and keep up (polish, 26 Nov 2026). Loaded after shell.css by
   the member app, the desk and the office; the code side is static/js/motion.js. Nothing here changes how a
   screen looks at rest. */

/* A LONG LIST IS LAID OUT AS IT IS REACHED. The office's board is three hundred cards; showing the tab laid out
   every one of them before the first frame (a third of a second on a phone). A row away from the screen now
   waits: it holds its usual height (and its own measured one once it has been seen), so the place in the list
   is kept. */
#tab-shidduchim .list > .ccrow, #tab-desk .list > .ccrow{content-visibility:auto; contain-intrinsic-size:auto var(--row-est-board)}
#tab-inbox .list > .crow, #v-members .list > .crow{content-visibility:auto; contain-intrinsic-size:auto var(--row-est-inbox)}
#tab-msgs .list > .trow{content-visibility:auto; contain-intrinsic-size:auto var(--row-est-thread)}
#tab-feedback .list > .crow{content-visibility:auto; contain-intrinsic-size:auto var(--row-est-fb)}

/* ---------- screens moving (static/js/motion.js) ---------- */
/* a tab changes at once; a pushed screen's movement is motion.js's (a pane beside a wide list keeps its fade) */
html.mv .main > .view:not(.push).entering{animation:none}
html.mv .view.push.entering:not(.pane):not(.railed){animation:none}
/* the screen being closed stays drawn until it has left */
.view.mv-leaving[hidden], .view.push.mv-open[hidden]{display:flex !important; pointer-events:none}
.view.push.mv-leaving{z-index:calc(var(--z-toast) - 1) !important}
.mv-top{box-shadow:var(--lift-3); will-change:transform}
.mv-under{will-change:transform}
.mv-covering{pointer-events:none}
.tabbar.mv-under, #acting.mv-under{position:relative}
.mv-shade{position:absolute; inset:0; z-index:var(--z-toast); background:var(--nav-shade); pointer-events:none; display:block}

/* ---------- touch ---------- */
html, body{touch-action:manipulation}
/* a row lights while the finger is on it — a beat late, so a flick through the list lights nothing */
.rowbtn:active, .kvrow:active, .msgrow:active, .numrow:active, .lgrow:active,
button.crow:active, .crow:has(> button:active):not(:has(.stg-expand:active)),
.trow:has(button:active){background-color:var(--sunk); transition:background-color 0s linear 70ms}

/* ---------- holding a button or a photo selects nothing and opens no menu (26 Nov 2026) ---------- */
button, [role="button"], [role="tab"], [role="radio"], label, summary, a.press, .tabbar, .pushbar, .avatar, .gallery, .photo, .grab, .pswp, .scrim{
  -webkit-user-select:none; user-select:none; -webkit-touch-callout:none}
input, textarea, [contenteditable]{-webkit-user-select:text; user-select:text}

/* iPhone Safari sends no tap to a plain box unless it looks pressable: tapping beside a sheet did nothing */
.scrim.show, div[data-act]{cursor:pointer}

/* ---------- a person's name on a card is their own tap (Shell.pname): the words, a little taller for the finger ---------- */
/* The line that holds the names is lifted over the card's own tap and lets everything but the names through: a name
   that is itself lifted loses the "…" of a line too long to show */
.crow .nm:has(.pname), .drow b:has(.pname), .prow .nm:has(.pname){position:relative; z-index:2; pointer-events:none}
.pname{pointer-events:auto; cursor:pointer; padding-block:var(--s1)}
.pname:active{opacity:.5}

/* the canvas behind everything is the page's own ground from the first frame, light or dark: never a white flash */
html{background:var(--ground)}

/* ---------- a finger's room without a change in size (44 px) ---------- */
.switch::before, [data-act="mp-lang"]::before{content:""; position:absolute; inset:calc(-1 * var(--s2)) 0}
[data-act="mp-lang"]{position:relative}
/* the three decision buttons stay one line while they work: the dimming says it, the dots pushed the words apart */
.act .busydots{display:none}
