/* LastStop design system, layer 2 of 4: base (docs/REDESIGN-ROLLOUT.md section 4): type, color, focus, figures, motion.
   Element rules stay light on purpose: the older styles.css still lays out page content until the later stages replace it,
   and its class rules (higher specificity) keep winning where they set something. */

html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.01em; }
h1, h2, h3 { color: var(--heading); }
a { color: inherit; }

/* figures: tabular numerals everywhere a number is shown */
.num, .fig, .pill, .ls-badge, .badge, .hero-figure, .ml .line .v, .acard-n, .grid-table td { font-variant-numeric: tabular-nums; }

/* focus: one visible ring, in the theme's accent */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sidebar :focus-visible, .dock :focus-visible, .ls-strip :focus-visible { outline-color: var(--focus); }

svg.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.15em; } /* the icon set's size when nothing sets it (as styles.css does) */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the standalone pages (sign-in, set password, chooser, switched off) sit on the page color of the theme */
body.is-page { background: var(--bg); color: var(--ink); }

/* motion: everything moves on the same curve; reduced motion turns it all off */
@keyframes ls-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ls-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ls-slide-down { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ls-sheet-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes ls-panel-in { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* J757 (Joshua 11/18/2026): moving between sections is seamless. Every section is its own page, so a tap used to show a
   blank (white, in the iPhone app) frame and then the new page with its rows fading in. Now:
   - same-site page changes are a view transition: the screen stays on the current page until the new one is ready to draw,
     then swaps in with a quick cross-fade (Safari / the iPhone app 18.2+, Chrome 126+; older browsers just load as before);
   - the frame (top strip, dock, sidebar) is named, so it is not faded: it stays put and only its active item changes;
   - a list that is still loading shows placeholder rows on the page color, never an empty panel. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 140ms; animation-timing-function: var(--ease); }
.ls-strip { view-transition-name: ls-strip; }
.dock { view-transition-name: ls-dock; }
.sidebar { view-transition-name: ls-sidebar; }
::view-transition-group(ls-strip), ::view-transition-group(ls-dock), ::view-transition-group(ls-sidebar),
::view-transition-old(ls-strip), ::view-transition-old(ls-dock), ::view-transition-old(ls-sidebar),
::view-transition-new(ls-strip), ::view-transition-new(ls-dock), ::view-transition-new(ls-sidebar) { animation: none; }
::view-transition-old(ls-strip), ::view-transition-old(ls-dock), ::view-transition-old(ls-sidebar) { display: none; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@keyframes ls-skel { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.list-empty.is-loading { position: relative; min-height: 164px; color: transparent !important; }
.list-empty.is-loading strong { color: transparent !important; }
.list-empty.is-loading::before { content: ""; position: absolute; inset: 12px 16px auto; height: 140px; border-radius: var(--r-3);
  background: linear-gradient(var(--surface-3), var(--surface-3)) 0 0 / 100% 40px no-repeat,
    linear-gradient(var(--surface-3), var(--surface-3)) 0 50px / 100% 40px no-repeat,
    linear-gradient(var(--surface-3), var(--surface-3)) 0 100px / 70% 40px no-repeat;
  animation: ls-skel 1.4s var(--ease) infinite; }
/* "Loading more." under rows already shown stays one quiet line, so the list never jumps */
.list-empty.is-loading.is-more { min-height: 0; color: var(--muted) !important; }
.list-empty.is-loading.is-more::before { display: none; }
