/* Approved tidal background: the field moves with the document, at 50%.
 * Keep the same reading veil used in the reviewed organic preview.
 */
body.tidal-enabled {
  position: relative;
  isolation: isolate;
}
.tidal-page-field {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}
.tidal-page-field canvas {
  position: absolute;
  left: 0;
  width: 100%;
  display: block;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}
body.tidal-enabled::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(24,23,21,.2) 10%, rgba(24,23,21,.70) 29%, rgba(24,23,21,.70) 72%, rgba(24,23,21,.2) 91%, transparent 100%);
}
.tidal-motion-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.tidal-motion-toggle:hover {
  color: var(--warm);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tidal-motion-toggle:disabled { cursor: default; }
.tidal-motion-toggle[hidden] { display: none; }
@media (max-width: 680px) {
  body.tidal-enabled::before { background: rgba(24,23,21,.65); }
  .tidal-motion-toggle { min-height: 32px; }
}
@media print {
  .tidal-page-field,
  body.tidal-enabled::before,
  .tidal-motion-toggle { display: none !important; }
}
