/* Shared page shells — sitewide flow rules (Appily onehundredtwenty) */

/*
 * Labels and label-like text stay in normal document flow on every route.
 * No sticky/fixed label chrome — filter bars and docks may still use fixed for CTAs only.
 */

body.a120-body :is(
  label,
  legend,
  dt,
  .ds-kicker,
  .ds-field > span,
  [class*="-label"],
  [class*="-kicker"],
  [class*="_label"],
  .lg-foot__form-label,
  .lg-foot__entry-title,
  .lg-foot__kicker,
  .lg-foot__memo-kicker,
  .py-yard__toc-title,
  .ct-index__label,
  .hc-hub__search-label,
  .hc-hub__search-title,
  .co-ledger__label,
  .sh-command__label,
  .xo-field label,
  .xo-dock__label,
  .xo-receipt-strip__due span,
  .ap-rail__label,
  .ap-bench__slat-label,
  .od-month__label,
  .lw-nav__slat-label,
  .bk-dock__sum span,
  .pv-qty label,
  .tr-seg__label
):not(.visually-hidden):not(.a120-skip) {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  inset: auto !important;
}

/* Side rails / search bars that carry labels scroll with the page (not pinned). */
body.a120-body :is(
  .sh-command,
  .hc-hub__search-rail,
  .hc-hub__search,
  .hc-shelf__index,
  .ct-index,
  .ap-desk__rail,
  .py-yard__toc,
  .od-archive__toolbar,
  .od-archive__filters,
  .xo-receipt-strip
) {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  z-index: auto !important;
}

body.a120-body :is(
  .co-ledger,
  .ap-index,
  .lg-foot__memo
) {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
}

body.a120-body .lw-nav {
  position: relative !important;
  top: auto !important;
}

body.a120-body .py-yard__foot {
  position: relative !important;
  inset: auto !important;
}
